Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Hamelkart on Mon 13/09/2004 22:03:20

Title: GUIoff error when saving a game!
Post by: Hamelkart on Mon 13/09/2004 22:03:20
My game doesn't want to save because I there is something wrong with disabling GUI. I thought I wrote the script correct. It's: line 1:   GUIoff(0);
line 2:   GUIoff(1)
Title: Re: GUIoff error when saving a game!
Post by: TheJBurger on Tue 14/09/2004 00:45:20
According to your code it says:

GUIOff(1)

You're missing a semicolon ( ; ) so add one like this.

GUIOff(1);

;)
Title: Re: GUIoff error when saving a game!
Post by: dreammaster on Tue 14/09/2004 02:39:18
You can also use the GUI name as the parameter, rather than it's number, which removes the possibility of using the wrong GUI number.