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
Error: Unexpected token {
ModManDann Offline
Member

Posts: 61
Threads: 6
Joined: Dec 2010
Reputation: 0
#7
RE: Error: Unexpected token {

void OnEnter();
{
AddEntityCollideCallback("Player" , "ScriptArea_3" , true , 1);
}

remove the ; from void onEnter(), when you create a function you NEVER put ; behind that. This is also the case for if statements, for loops etc.

It should look like:

void OnEnter()
{
AddEntityCollideCallback("Player" , "ScriptArea_3" , true , 1);
}

Current project: Mind Trap
01-06-2011, 12:45 PM
Find


Messages In This Thread
Error: Unexpected token { - by Neatherblade - 01-05-2011, 11:27 PM
RE: Error: Unexpected token { - by ModManDann - 01-05-2011, 11:49 PM
RE: Error: Unexpected token { - by Mofo - 01-05-2011, 11:51 PM
RE: Error: Unexpected token { - by Neatherblade - 01-06-2011, 12:18 PM
RE: Error: Unexpected token { - by Russ Money - 01-06-2011, 12:22 PM
RE: Error: Unexpected token { - by Neatherblade - 01-06-2011, 12:38 PM
RE: Error: Unexpected token { - by ModManDann - 01-06-2011, 12:45 PM
RE: Error: Unexpected token { - by ThePaSch - 01-06-2011, 03:10 PM
RE: Error: Unexpected token { - by Neatherblade - 01-06-2011, 03:45 PM



Users browsing this thread: 2 Guest(s)