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:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ERR : Expected ";"
Zizilon Offline
Junior Member

Posts: 7
Threads: 4
Joined: Jun 2012
Reputation: 0
#1
ERR : Expected ";"

So currently i'm making a Amnesia CS. I wanted to put a jumpscare and something is wrong with my script and i've been trying to find the problem and I couldn't find it, can you please tell me the problem in my script?
And when I load the map it says:
ERR : Expected ";"
Here is my script:

////////////////////////////
// Run when entering map

void OnStart()
{
PlayMusic("introtheme.ogg", true, 0.9, 1.0, 1, true)
AddUseItemCallback("", "Key", "Door_2", "UseKeyOnDoor", true);
AddEntityCollideCallback("Player", "Walk_Quest_Area", "GetWalkQuest", true, 1);
AddEntityCollideCallback("Player", "Walk_Quest_Area2", "GetWalkQuest2", true, 1);
AddEntityCollideCallback("Player", "TeleportScript", "NailThatSucker", true, 1);
}

void NailThatSucker(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Jesus", true);
AddPropForce("Jesus", -10000, 0, 0, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "Jesus", 0, false);
}

void GetWalkQuest2(string &in asParent, string &in asChild, int alState)
{
AddQuest("walkquest2", "WalkQuest2");
}

void GetWalkQuest(string &in asParent, string &in asChild, int alState)
{
AddQuest("walkquest", "WalkQuest");
}

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

void Message1(string &in asChild, string &in asParent, int alState)
{
SetMessage("Messages", "Popup1", 5); //This stands for ("Name of category", "Name of entry", time to be displayed on the screen);.
}

void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{
StopMusic(1 , 1);
}
06-01-2014, 02:42 PM
Find


Messages In This Thread
ERR : Expected ";" - by Zizilon - 06-01-2014, 02:42 PM
RE: ERR : Expected ";" - by Neelke - 06-01-2014, 03:35 PM
RE: ERR : Expected ";" - by The chaser - 06-02-2014, 07:40 PM
RE: ERR : Expected ";" - by WALP - 06-03-2014, 02:48 PM
RE: ERR : Expected ";" - by eliasfrost - 06-03-2014, 02:58 PM
RE: ERR : Expected ";" - by Romulator - 06-03-2014, 03:29 PM
RE: ERR : Expected ";" - by eliasfrost - 06-03-2014, 03:38 PM



Users browsing this thread: 2 Guest(s)