Jump to content

مساعده بسيطه


Recommended Posts

سلام عليكم اليوم عملت شي

اذا ما حدد شي بالقريد لست

يختفي البيتون

الكود فيه خطا ؟ :

addEventHandler("onClientGUIClick", root, 
    function () 
     if( source == Start ) then 
        if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then 
      else 
      guiSetEnabled(send, false) 
      setTimer(guiSetEnabled, 3000, 1, send, true) 
 end 
        end 
) 
Link to comment

طيب انا عملت لين لما يحدد شي بالقرد لست

الrow الاول

ويضعط علي البيتون

يجيلو دم

addEventHandler("onClientGUIClick", root, 
    function ( player ) 
    local health = guiGridListSetItemText ( grid , guiGridListGetSelectedItem ( grid ) , 1 ) 
     if( source == Start ) then 
        if ( guiGridListGetSelectedItem ( grid ) ~= -1 ) then 
       setElementHealth(player,100) 
      else 
      guiSetEnabled(send, false) 
      setTimer(guiSetEnabled, 3000, 1, send, true) 
      end 
    end 
  end 
) 

فيه خطا؟

Link to comment
addEventHandler("onClientGUIClick", root, 
    function ( ) 
    local health = guiGridListSetItemText ( grid , guiGridListGetSelectedItem ( grid ) , 1 ) 
     if source == Start  and guiGridListGetSelectedItem ( grid ) ~= -1  then 
       setElementHealth(localPlayer,100) 
      else 
      guiSetEnabled(send, false) 
      setTimer(guiSetEnabled, 3000, 1, send, true) 
      end 
  end 
) 

:cry:

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...