DanyR07
Junior Member
Posts: 1
Threads: 1
Joined: Aug 2012
Reputation:
0
|
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 |
|
Kazakarumariou
An angry man.
Posts: 283
Threads: 8
Joined: Jul 2012
Reputation:
14
|
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 |
|
Your Computer
SCAN ME!
Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation:
235
|
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.
(This post was last modified: 08-02-2012, 02:50 PM by Your Computer.)
|
|
08-02-2012, 02:37 PM |
|