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 ERROR?
taz251 Offline
Junior Member

Posts: 7
Threads: 3
Joined: Jul 2012
Reputation: 0
#1
UNEXPECTED END OF FILE ERROR?

Hello! I'm new to making amnesia custom stories. I have been trying to code and I have been having tons of trouble. The problem that keeps coming up is when I try to add another unlock door code. I keep getting the "Unexpected End of File" Error.

Here is what I have down:

void OnStart()
{
SetEntityCallbackFunc("needle_1", "jump");
}

void jump(string &in asEntity, string &in type){
SetEntityActive("pig", true);
PlayGuiSound("21/21_scream10.ogg", 1.0f);
StartScreenShake(0.25f, 0.25, 0, 0.25);
{

}

void OnEnter()
{
AddUseItemCallback("", "hallwaykey_1", "mansion_2", "UsedKeyOnDoor", true);
}

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

AddUseItemCallback("", "needle_1", "mansion_4", "Needle", true);
{

void Needle(string &in asItem, string &in asEntity)
}
SetSwingDoorLocked("mansion_4", false);
PlaySoundAtEntity("", "unlock_door", "mansion_4", 0, false);
RemoveItem("needle_1");
{

}
07-27-2012, 09:33 AM
Find


Messages In This Thread
UNEXPECTED END OF FILE ERROR? - by taz251 - 07-27-2012, 09:33 AM
RE: UNEXPECTED END OF FILE ERROR? - by Adny - 07-27-2012, 09:59 AM
RE: UNEXPECTED END OF FILE ERROR? - by taz251 - 07-27-2012, 10:06 AM
RE: UNEXPECTED END OF FILE ERROR? - by Adny - 07-27-2012, 10:15 AM
RE: UNEXPECTED END OF FILE ERROR? - by taz251 - 07-27-2012, 10:22 AM



Users browsing this thread: 1 Guest(s)