Runtime error: unexpected eof

Started by Anarcho, Mon 13/06/2005 05:40:22

Previous topic - Next topic

Anarcho

I'm trying to save my game here and I'm getting an error in the Global script:

"Runtime error: unexpected eof"

It doesn't say where the error in the global script is.  The only mention of EOF in the help file is about EOF Property but I don't really understand it.  I was editing a dialog request just prior to this error coming up.  Hopefully someone can help me out without having to go through my whole script, but just in case:

http://www.geocities.com/princebusterlw/EE_Script6132005.txt


InCreator

Code: ags
 else if (value == 38) { //  Percy Gives her shit
     character[EGO].AddInventory((iDress);
     character[EGO].AddInventory((iJumpsuit); 


Look closely...

There may be more mistakes like this aswell. The code is way too long to spend a night on it :D

I usually get eof errors when using wrong brackets, like this--

DisplaySpeech(EGO,"well done"];

So keep an eye for such things too.

Anarcho

Ah, thanks so much.  That would ((do it), right?  I've got to stop coding things after midnight.


InCreator

The usage of double brackets(right word?) was just unneccessary.

character[who].AddInventory(thing)

is enough.

SMF spam blocked by CleanTalk