SOLVED: close_save_game_dialog(); error

Started by Slasher, Mon 21/10/2013 00:46:08

Previous topic - Next topic

Slasher

Hi,

under what conditions would this bring up an error:
Code: ags
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.






Khris

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.

monkey0506

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. ;)


Slasher

Sorry guys and thanks a bunch.

I misread the lines.

Thanks very much.

(nod)




SMF spam blocked by CleanTalk