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
FATAL ERROR Token ´{´
DanyR07 Offline
Junior Member

Posts: 1
Threads: 1
Joined: Aug 2012
Reputation: 0
#1
FATAL ERROR Token ´{´

OK guys, im using the scripting guide: "From Noob to Pro", but i have a problem, when i get to the part when he teach us how to make the grunt get activate when u pick de key, i cant do that because i have a problem with (17/1) token. Here is the scripting



void OnStart()
{
SetEntityPlayerInteractCallback("key_study_1", "ActivateMonster", true);
}


void OnEnter()
{
AddDebugMessage("OnEnter!", false);
}


void OnLeave()
{
AddDebugMessage("OnLeave!", false);
}


void ActivateMonster(string &in item);
{ <-----(17/1) token whit amnesia say have a problem
SetEntityActive("servant_grunt_1", true)
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}
I really appreciate ur help guys!!!!!!!! HEERP
08-02-2012, 01:35 AM
Find
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#2
RE: FATAL ERROR Token ´{´

Try using This code

void OnStart()
{
SetEntityCallbackFunc("key_study_1", "ActivateMonster");
}

void ActivateMonster(string &in asEntity, string &in type)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 1, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 1, "");

void OnEnter()
{
AddDebugMessage("OnEnter!", false);
}

void OnLeave()
{
AddDebugMessage("OnLeave!", false);
}
(This post was last modified: 08-02-2012, 02:30 AM by Kazakarumariou.)
08-02-2012, 02:29 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: FATAL ERROR Token ´{´

You have a semicolon in the function header. It's not supposed to be there. And you're missing a semicolon for SetEntityActive.

Tutorials: From Noob to Pro
(This post was last modified: 08-02-2012, 02:50 PM by Your Computer.)
08-02-2012, 02:37 PM
Website Find




Users browsing this thread: 1 Guest(s)