Jump to content

مساعدة


Recommended Posts

مكشور معاند

بس عندي سؤال ,

مثلآ القريد ليست فيه سيارتين , وحده شرطة والثانية إسعاف , إذا ضغط على الشرطة , يطلع له بالليبل معلومات عن الشرطة , وإذا ضغط على ألاسعاف يطلع له معلومات عن الاسعاف ,

فشلون أستخدم

 guiGridListGetSelectedItem  

للسيارتين

Link to comment

جرب هذي الطريقة

addEventHandler ( "onClientGUIClick",root, 
    function  () 
        if (source == Grid) then 
        local row,col = guiGridListGetSelectedItem(Grid) 
        if (row and col and row ~= -1 and col ~= -1 ) then 
        local  text = guiGridListGetItemText (Grid,guiGridListGetSelectedItem(Grid)) 
        if  text  ==  'Police Car'  then 
                  guiSetText ( Label,"معلومات سيارة الشرطة" ) 
        elseif  text  ==  'Medic Car'  then 
                  guiSetText ( Label,"معلومات سيارة الاسعاف" ) 
             end   
         end 
     end 
 end 
) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...