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 {
Combustible Lemon Offline
Junior Member

Posts: 10
Threads: 4
Joined: Apr 2012
Reputation: 0
#1
unexpected token {

void OnStart()
{
AddUseItemCallback("", "key_1", "prison_1", "KeyOnDoor", true);
AddUseItemCallback("", "key_tomb_rusty_1", "mansion_3", "KeyOnDoor2", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("prison_1", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "prison_1", 0.0f, true);
RemoveItem("key_1");
}

void KeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_3", false, true);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_3", 0.0f, true);
RemoveItem("rusty_1");
}

{
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1" , true , 1);
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("servant_grunt" , true);
}
It says unexpected token { and i can't find out what to do. Im new at scripting.
(This post was last modified: 04-15-2012, 01:32 AM by Combustible Lemon.)
04-15-2012, 12:58 AM
Find


Messages In This Thread
unexpected token { - by Combustible Lemon - 04-15-2012, 12:58 AM
RE: unexpected token { - by Strembitsky - 04-15-2012, 01:01 AM
RE: unexpected token { - by Combustible Lemon - 04-15-2012, 01:31 AM



Users browsing this thread: 2 Guest(s)