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 Token
A.I. Offline
Member

Posts: 114
Threads: 16
Joined: Feb 2012
Reputation: 2
#1
Unexpected Token

Ehh, I tried not getting on here that much but I seem to be having some trouble and this place is pretty good for help Smile.


The script is:

void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "changemap", true, 1);
AddEntityCollideCallback("Player", "CreditsStart", "PlayerCollideArea", true, 1);
AddEntityCollideCallBack("Player", "MonsterTrigger", "PlayerCollideArea1", true, 1);
AddItemCallback("", "key", "mansion1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion1", 0.0f, false);
RemoveItem("key");
}

void changemap(string &in asParent, string &in asChild, int alState)
{
ChangeMap("map4.map", "spawnpoint", "flashback_flash.snt", "sanity_pant.snt");
}

void PlayerCollideArea(string &in Parent, string &in Child, int alState)
{
AddTimer("T1", 2.0f, "Timer_1");
}

void Timer_1(string &in Timer);
{
StartCredits("ending_daniel.ogg", false, "Ending", "MainCredits", 3);
}

void PlayerCollideArea(string &in Parent, string &in Child, int alState)
{
SetEntityActive("cloakedman_1", true);
ShowEnemyPlayerPosition("monster");
SetEnemyIsHallucination("monster");
}
void OnEnter()
{
}

void OnExit()
{
}

and the error is:
main (27, 1) : ERR : Unexpected token '{
(This post was last modified: 02-25-2012, 02:38 AM by A.I..)
02-25-2012, 01:46 AM
Find


Messages In This Thread
Unexpected Token - by A.I. - 02-25-2012, 01:46 AM
RE: Unexpected Token - by Your Computer - 02-25-2012, 02:35 AM
RE: Unexpected Token - by LulleBulle - 02-25-2012, 02:37 AM
RE: Unexpected Token - by A.I. - 02-25-2012, 02:37 AM



Users browsing this thread: 1 Guest(s)