Frictional Games Forum (read-only)
Unexpected end of file... - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Unexpected end of file... (/thread-19418.html)



Unexpected end of file... - ryan1431 - 12-03-2012

I need some help with an error i'm having which i can't seem to solve. The script i have in my .hps file is this:

void papermusic_01(string &in asEntity)
{
PlayGameMusic(01_paper_self.ogg, 1, 0, 0, 0);
SetTimer("paper_01_music", 25, "paper_01_music");
}

void paper_01_music(string &in asTimer)
{
StopGameMusic(1, 0)
}

The papermusic_01 is the callbackfunc. < - The point of the script is to play music when I pick up the paper file (entity). NOW, when i try to quickmapreload, it says this...

Main (49,2) : ERR : Unexpected end of file

^ end of file?? wha?? like it all makes sense doesn't it?? please help


RE: Unexpected end of file... - Adrianis - 12-03-2012

void paper_01_music(string &in asTimer)

{

StopGameMusic(1, 0);

}

You missed the ; at the end of that line Smile

(posts like this should go in the 'support' sub-forum)


RE: Unexpected end of file... - ryan1431 - 12-03-2012

(12-03-2012, 03:08 AM)Adrianis Wrote: void paper_01_music(string &in asTimer)

{

StopGameMusic(1, 0);

}

You missed the ; at the end of that line Smile

(posts like this should go in the 'support' sub-forum)

okay, ty for the helpSmile