6d23 Posted September 16, 2009 Share Posted September 16, 2009 why does this script dont works? addCommandHandler (help, guihelp, restricted = false, caseSensitive = true) --Gui Starts Here --------------------- function guihelp (commandName) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Window[1] = guiCreateWindow(167,126,554,421,"Grasiel Clan Server -",false) See_Factions = guiCreateButton(0.1047,0.1116,0.3664,0.247,"See Factions",true,GUIEditor_Window[1]) How_To_Join = guiCreateButton(0.0993,0.4181,0.3664,0.2565,"How To Join",true,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(0.5072,0.1188,0.4224,0.2447,"Being A Criminal",true,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(0.0614,0.8361,0.8412,0.1164,"We Recomend To See Being A Criminal and Factions",true,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) --- --- --- --- --- thnxs for awnsering (better now than never, lol! Link to comment
eAi Posted September 16, 2009 Share Posted September 16, 2009 That isn't the syntax for addCommandHandler - lua doesn't support named arguments, so remove the 'restricted =' and 'caseSensitive =' parts. Can't really tell about the rest. Use debugscript 3 in the console - Lua would have given you an error about that. Link to comment
6d23 Posted September 16, 2009 Author Share Posted September 16, 2009 Use debugscript 3 in the console - Lua would have given you an error about that. Whats that? Link to comment
SATAN Posted September 16, 2009 Share Posted September 16, 2009 open the console (by pressing F8 on your keyboad), type debugscript 3 and hit enter, then you'll see what it is. Link to comment
6d23 Posted September 17, 2009 Author Share Posted September 17, 2009 but my script dont works! Link to comment
Gamesnert Posted September 17, 2009 Share Posted September 17, 2009 but my script dont works! ... Which is exactly why you should do it. Link to comment
50p Posted September 17, 2009 Share Posted September 17, 2009 https://wiki.multitheftauto.com/index.ph ... =Debugging Link to comment
6d23 Posted September 17, 2009 Author Share Posted September 17, 2009 the post now is at the other post, the one named: Rpg Help, sorry for this one Rly Srry ty 6d23 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