(http://img100.imageshack.us/img100/5369/runtimeerrorunexpectedeto0.th.jpg) (http://img100.imageshack.us/my.php?image=runtimeerrorunexpectedeto0.jpg)
As you can see, AGS will not let me save room 39. There is a character, a farmer with a plow, that I permanently change into a man with a lantern. Please tell me what I did wrong. ???
(http://img218.imageshack.us/img218/8586/farmerandplowanimationche4.th.gif) (http://img218.imageshack.us/my.php?image=farmerandplowanimationche4.gif)
(http://img230.imageshack.us/img230/7264/farmerthefullcyclerightbn1.th.gif) (http://img230.imageshack.us/my.php?image=farmerthefullcyclerightbn1.gif)
Thank you!
I'd guess it's about your dialog script, does that do anything special? Run dialog_request for exampe? Since line -10 isn't inside the script and nothing seems wrong there it must be somewhere else.
It looks like the function room_load() doesn't have brackets, but parenthesis. I think that makes a difference.
Also, I've had this mysterious error before too. Check to make sure your dialog is all syntaxed correctly. (Make sure there is a semicolon after every command, check if you're missing a closing parenthesis on a command, that kind of stuff.) That was the problem for mine.
Yep, it's got to be the () instead of {}.
I've encountered this error message a few times, and it has always been due to a missing " at the end of a string.
Additionally it seems the cFarm.Walk-function has a bracket too much though I don't know if this has any consequences.
:D Thanks guys for all your help!
I did what you suggested... changed the bracket style...and VOILA! It saves and runs!
Problem Solved. :)
Quote from: NiksterG on Sat 09/02/2008 18:29:36
It looks like the function room_load() doesn't have brackets, but parenthesis. I think that makes a difference.
Yeah, that... A pixel or so difference so I missed it :P