Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unexpected End To File
Scary22 Offline
Junior Member

Posts: 2
Threads: 1
Joined: May 2011
Reputation: 0
#1
Unexpected End To File

It keeps popping out. its pissing me off ):
////////////////////////////
// Run when starting map
void OnStart()
{
AddUseItemCallBack("", "spawnwaterkey_1", "spawnwaterdoor_1", "KeyOnWaterDoor", true);
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1 true , 1);
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("spawnwaterdoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "spawnwaterdoor_1", 0, false);
RemoveItem("spawnwaterkey_1");
}
void MonsterFunc1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("wtfmeow", true);
}

////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}
check whats wrong please
05-19-2011, 12:37 PM
Find
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Unexpected End To File

When an script error pop-up shows up, please give us the numbers so we can look into the line number which is wrongly scripted.
You should change
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1 true , 1);
to
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1", true , 1);

05-19-2011, 01:50 PM
Website Find
Scary22 Offline
Junior Member

Posts: 2
Threads: 1
Joined: May 2011
Reputation: 0
#3
RE: Unexpected End To File

(05-19-2011, 01:50 PM)Tanshaydar Wrote: When an script error pop-up shows up, please give us the numbers so we can look into the line number which is wrongly scripted.
You should change
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1 true , 1);
to
AddEntityCollideCallback("Player" , "ScriptArea_1" , "MonsterFunc1", true , 1);

it says 32,1 or 33,1 Unexpected End Of Line.
Or Sometimes Did not found matching entity at (string &in blah blah blah)
05-20-2011, 07:10 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Unexpected End To File

Wow. I found the error literally in less than 15 seconds. :p

But you know, people who aren't used to scripting usually can't find errors as good. Smile

05-20-2011, 10:55 AM
Find




Users browsing this thread: 1 Guest(s)