Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unexpected end of file...
ryan1431 Offline
Junior Member

Posts: 14
Threads: 10
Joined: Dec 2012
Reputation: 0
#1
Unexpected end of file...

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
12-03-2012, 03:02 AM
Find
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#2
RE: Unexpected end of file...

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
Find
ryan1431 Offline
Junior Member

Posts: 14
Threads: 10
Joined: Dec 2012
Reputation: 0
#3
RE: Unexpected end of file...

(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
12-03-2012, 03:16 AM
Find




Users browsing this thread: 1 Guest(s)