Here´s the script lines i wrote:
if (button == 1) // quit
QuitGame(0);
Button number is ok, i can't figure out what's wrong.
When i click the button in the test game; it just closes all GUIs, but doesn't exit the game.
any ideas?
try QuitGame(1);
and if that doesn't work, make sure the button (in the GUI editor) is set to 'Run Script'
~ d
Nope. Still the same... and i've checked the buttons and they are correctly set...
Please then post the full script for that GUI. It must be some missing syntax or something.
~ d