Leonzun
Junior Member
Posts: 3
Threads: 2
Joined: May 2012
Reputation:
0
|
Error unexpected end of file
Need help, Made a sript but i get the error ""error unexpected end of file""
Can someone help me?
TheScript:
Quote:void OnStart()
{
AddUseItemCallback("", "Key", "Door", "UseKeyOnDoor", true);
AddEntityCollideCallback("Player", "AreaCollide", "EventCollide", true, 1);
}
void UseKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
RemoveItem(asItem);
}
void EventCollide(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Grunt", true);
AddEnemyPatrolNode("Grunt", "Node_1", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_2, 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_3", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_4", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_5", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_6", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_7", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_8", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_9", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_10", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_11", 0.001f, "");
AddEnemyPatrolNode("Grunt", "Node_12", 0.001f, "");
}
|
|
08-28-2014, 02:20 PM |
|
Mudbill
Muderator
Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation:
179
|
RE: Error unexpected end of file
AddEnemyPatrolNode("Grunt", "Node_2, 0.001f, "");
This line is missing a quote. I'm assuming you'll know where. Be sure to look over your file properly if you encounter errors like these; they're usually syntax errors, for example a missing symbol or similar.
|
|
08-28-2014, 02:25 PM |
|
FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
RE: Error unexpected end of file
(08-28-2014, 02:25 PM)Mudbill Wrote: AddEnemyPatrolNode("Grunt", "Node_2, 0.001f, "");
This line is missing a quote. I'm assuming you'll know where. Be sure to look over your file properly if you encounter errors like these; they're usually syntax errors, for example a missing symbol or similar.
And they happen when there was supposed to be 2 of that symbol but was only 1.
Trying is the first step to success.
|
|
08-28-2014, 05:15 PM |
|
DnALANGE
Banned
Posts: 1,549
Threads: 73
Joined: Jan 2012
|
RE: Error unexpected end of file
What they mean is "Node_2" You are missing the second " Node_2*, you see it?
|
|
08-28-2014, 05:54 PM |
|
Mudbill
Muderator
Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation:
179
|
RE: Error unexpected end of file
Probably unecessary to point it out to the highest detail. Gotta let them do some work themselves or they'll never learn, ya know?
|
|
08-28-2014, 07:34 PM |
|
FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
RE: Error unexpected end of file
(08-28-2014, 07:34 PM)Mudbill Wrote: Probably unecessary to point it out to the highest detail. Gotta let them do some work themselves or they'll never learn, ya know?
Truth!
Trying is the first step to success.
|
|
08-28-2014, 07:58 PM |
|
|