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
Unexpected end of file.... :/
DarkEagle Offline
Junior Member

Posts: 15
Threads: 3
Joined: Jun 2011
Reputation: 0
#1
Sad  Unexpected end of file.... :/

Okay, i have a problem... I think i added everything,changed and looked around the code's for 3 time's still getting this error. Dodgy

Here is the code:
void OnStart()
{
AddUseItemCallback("item1","keykiller1","woodendoor1","dooropen",true);
SetEntityCallbackFunc("keykiller1","zombietime");
AddEntityCollideCallback("eater1","autoscript","killer",false,0);
AddEntityCollideCallback("Player","area","en",false,1);
AddEntityCollideCallback("Player","area","de",false,-1);
AddUseItemCallbackFunc("keyer","key_to_level2","ending_door","dooropen2", true);
}

void OnEnter()
{

}

void OnLeave()
{

}


void dooropen(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("woodendoor1",false,true);
}

void zombietime(string &in entity, string &in type)
{
StartEffectFlash(2,0.8,2);
SetEntityActive("servant_grunt_1",true);
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_1",0,"");
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_2",0,"");
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_3",0,"");
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_4",0,"");
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_5",0,"");
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_6",0,"");
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_4",0,"");
AddEnemyPatrolNode("servant_grunt_1","PathNodeArea_3",0,"");
SetPropHealth("ddoor1",0);
AddTimer("timerzombie",30,"killzombie");
}

void killzombie(string &in asTimer)
{
FadeEnemyToSmoke("servant_grunt_1",true);
}

void killer(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("eater1","PathNodeArea_7",0,"");
AddEnemyPatrolNode("eater1","PathNodeArea_8",0,"");

void en(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("box1enable",false);
}

void de(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("box1enable",true);
}

void dooropen2(string& asName, bool abLocked)
{
SetLevelDoorLocked("ending_door",false);
RemoveItem("keyer");
}

Some time's people aren't people!
In Developement:Dark Path 13%
(This post was last modified: 08-05-2011, 06:30 PM by DarkEagle.)
08-05-2011, 06:26 PM
Find
Kurton Offline
Senior Member

Posts: 533
Threads: 8
Joined: Oct 2010
Reputation: 16
#2
RE: Unexpected end of file.... :/

Your "killer" function isn't closed with a }

08-05-2011, 06:29 PM
Find
DarkEagle Offline
Junior Member

Posts: 15
Threads: 3
Joined: Jun 2011
Reputation: 0
#3
RE: Unexpected end of file.... :/

(08-05-2011, 06:29 PM)Kurton Wrote: Your "killer" function isn't closed with a }

Oh, lololol... sry... thank's. Smile

Some time's people aren't people!
In Developement:Dark Path 13%
08-05-2011, 06:29 PM
Find




Users browsing this thread: 1 Guest(s)