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

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

This is what i have in my .hps file.

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);
}


Okay so the papermusic_01 is the name of the callbackfunc ...

Every time i try to "quickmapreload" using debug, it says this...

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

At first i didn't put a ';' after StopGameMusic(1,0) but that doesn't seem to be the problem.

(Btw 49,2 -> refers to the line 'StopGameMusic(1,0);'
12-04-2012, 02:50 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Unexpected end of file STILL...

You cannot refer to anything when it says "Unexpected end of file".
It only shows where... well, where the file ends.
Means it's somewhere inside your script that you forgot to close these "" these () or these { }

Trying is the first step to success.
12-04-2012, 07:00 AM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Unexpected end of file STILL...

(12-04-2012, 02:50 AM)ryan1431 Wrote: This is what i have in my .hps file.

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

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


Okay so the papermusic_01 is the name of the callbackfunc ...

Every time i try to "quickmapreload" using debug, it says this...

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

At first i didn't put a ';' after StopGameMusic(1,0) but that doesn't seem to be the problem.

(Btw 49,2 -> refers to the line 'StopGameMusic(1,0);'


If you don't mark the music you want, the script will turn mad and will not know what to do.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-04-2012, 09:17 AM
Find
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#4
RE: Unexpected end of file STILL...

Please don't make new threads, if you get a new problem you could write in your old post from earlier today.

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
12-04-2012, 04:37 PM
Website Find




Users browsing this thread: 1 Guest(s)