Frictional Games Forum (read-only)

Full Version: Unexpected end of file...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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)
(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