The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 EOF Error
helloworld2817 Offline
Junior Member

Posts: 3
Threads: 1
Joined: May 2012
Reputation: 0
#1
Unexpected EOF Error

Hi all,
I think this thing has finally beaten me. I'm at a loss for solutions. My script:
Quote: // Run first time starting map
void OnStart()
{
PreloadSound("male_terrified_5.snt");
SetEntityPlayerInteractCallback("scaryhall", "HallScare", true);
}

void HallScare(string &in asEntity)
{
StartScreenShake("0.3f, "5.5f", "1.0f", "1.0f");
PlaySoundAtEntity("", "male_terrified_5.snt", "ScaryHall", 0.0f, false);
}

////////////////////////////
// Run when entering map
void OnEnter()
{
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");
SetPlayerLampOil(100.0f);

}
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Throws me an unexpected EOF error at the last line (29,2 - which I'm confused at because there's only one character). I've taken out functions and added them in in an attempt to figure out where the issue was, but it keeps saying the same thing.
Any ideas?

P.S. On a somewhat related note, is a screen shake sufficient enough to make a dynamic painting fall off a wall? Or is that a separate piece of code?
07-03-2012, 03:40 AM
Find


Messages In This Thread
Unexpected EOF Error - by helloworld2817 - 07-03-2012, 03:40 AM
RE: Unexpected EOF Error - by Adny - 07-03-2012, 03:51 AM
RE: Unexpected EOF Error - by helloworld2817 - 07-03-2012, 04:12 AM



Users browsing this thread: 1 Guest(s)