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 end of file
rybray Offline
Junior Member

Posts: 31
Threads: 9
Joined: Aug 2011
Reputation: 1
#1
Unexpected end of file

I get the error saying that there is an unexpected end to my file. Could someone point out my error, I cannot find it.


/////////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "DoorAreaOne", "CollideDoorOne", true, 1);
}

void CollideDoorOne(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_wood01_slow_1", true, true);
}
////////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "DoorKey, "castle_arched01_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("castle_arched01_1", false, true);
PlaySoundAtEntity("", "unlock_door", "castle_arched01_1", 0, false);
RemoveItem("DoorKey");
}

////////////////////////////////
// Run when leaving map
void OnLeave()
{

}
08-11-2011, 03:48 AM
Find


Messages In This Thread
Unexpected end of file - by rybray - 08-11-2011, 03:48 AM
RE: Unexpected end of file - by graykin - 08-11-2011, 03:52 AM
RE: Unexpected end of file - by rybray - 08-11-2011, 03:53 AM
RE: Unexpected end of file - by graykin - 08-11-2011, 03:58 AM



Users browsing this thread: 4 Guest(s)