Adham Posted May 10, 2016 Share Posted May 10, 2016 سلام عليكم اليوم عملت شي اذا ما حدد شي بالقريد لست يختفي البيتون الكود فيه خطا ؟ : 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
Adham Posted May 10, 2016 Author Share Posted May 10, 2016 طيب انا عملت لين لما يحدد شي بالقرد لست ال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
Me[Z]oO Posted May 10, 2016 Share Posted May 10, 2016 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 ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now