Castillo Posted October 24, 2011 Share Posted October 24, 2011 Is this resource in acl.xml group admin? executeCommandHandler requires it. Link to comment
adward Posted October 24, 2011 Author Share Posted October 24, 2011 yes i add in acl group admin but not work Link to comment
adward Posted October 24, 2011 Author Share Posted October 24, 2011 this work addEventHandler("onClientGUIClick",root, function () if (source == GUIEditor_Button[1]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"20") elseif (source == GUIEditor_Button[2]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"30") end end) but when add more button like this addEventHandler("onClientGUIClick",root, function () if (source == GUIEditor_Button[1]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"1") elseif (source == GUIEditor_Button[2]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"2") elseif (source == GUIEditor_Button[3]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"3") elseif (source == GUIEditor_Button[4) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"4") elseif (source == GUIEditor_Button[5]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"5") elseif (source == GUIEditor_Button[6) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"6") elseif (source == GUIEditor_Button[7]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"7") elseif (source == GUIEditor_Button[8]) then triggerServerEvent("executeACommand",localPlayer,localPlayer,"8") end end) not work Link to comment
karlis Posted October 24, 2011 Share Posted October 24, 2011 another syntax error at line 13 FFS JUST WRITE /debugscript 3 when testing scripts Link to comment
Castillo Posted October 24, 2011 Share Posted October 24, 2011 And... do these 'arenas' exists? Link to comment
adward Posted October 24, 2011 Author Share Posted October 24, 2011 where writ this /debugscript??? Link to comment
adward Posted October 24, 2011 Author Share Posted October 24, 2011 debugscript: Syntax is 'debugscript ' ??? what mean?? Link to comment
adward Posted October 24, 2011 Author Share Posted October 24, 2011 And... do these 'arenas' exists? ??? where o this?? Link to comment
Castillo Posted October 24, 2011 Share Posted October 24, 2011 Omg, you're annoying, first, don't double post, second debugscript has 4 levels, from 0 to 3. 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