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
Script Help Unnexpected end of file error CONTINUES!
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#7
RE: Unnexpected end of file error CONTINUES!

Okay, on further analysis, on two occasions we have this:
PHP Code: (Select All)
PlayMusic(inrto_cabin.oggfalse012false); 

NOT SURE if inrto_cabin.ogg is spelt incorrectly (for now I'll assume it is okay), but the problem is that it is a string value, so it must be enclosed in two quotation marks (").

Replace the two (one in OnStart and the other a few lines up from void UseKeyOnDoor) with these respectively:
PHP Code: (Select All)
PlayMusic("inrto_cabin.ogg"false111false); 
PHP Code: (Select All)
PlayMusic("inrto_cabin.ogg"false012false); 

You could also...
Spoiler below!

Just for the sake of coding, although that having the volume at 0 to make the music mute is okay, can also use this instead of the second PlayMusic:
PHP Code: (Select All)
void StopMusic(float afFadeTimeint alPrio); 
Stops music.

afFadeTime - time in seconds until music stops
alPrio - the priority of the music that should stop


Edit: Oh and as Amn pointed out; in your OnStart(), you have forgotten the semi-colon at the end of this: ShowPlayerCrosshairIcons(false)

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 03-02-2014, 08:58 AM by Romulator.)
03-02-2014, 08:55 AM
Find


Messages In This Thread
RE: Unnexpected end of file error CONTINUES! - by Romulator - 03-02-2014, 08:55 AM



Users browsing this thread: 1 Guest(s)