Hi,
under what conditions would this bring up an error:
close_save_game_dialog();
GlobalScript.asc(411): Error (line 411): Undefined token 'close_save_game_dialog'
Saves are not being saved with each new game and only 1 save can be made.
The function is defined in line 170 in the global script.
So calling it anywhere from line 1 to 169 would create that error.
If you want to use this function "earlier", just move it up in the script, since functions have to be declared "before" they're used.
Quote from: Khris on Mon 21/10/2013 07:24:04since functions have to be declared defined "before" they're used.
Fixed that for you. ;)
(http://www.adventuregamestudio.co.uk/forums/Themes/AGSCompact/images/post/thumbup.gif)
Sorry guys and thanks a bunch.
I misread the lines.
Thanks very much.
(nod)