DarkEagle 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 15 
	Threads: 3 
	Joined: Jun 2011
	
 Reputation: 
0
		
	 | 
	
		
			
  
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.   
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  | 
	
		
	 | 
 
 
	
		
		Kurton 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 533 
	Threads: 8 
	Joined: Oct 2010
	
 Reputation: 
16
		
	 | 
	
		
			
RE: Unexpected end of file.... :/ 
			 
			
				Your "killer" function isn't closed with a }
			 
			
			
 
			
		 |  
	 
 | 
 
	| 08-05-2011, 06:29 PM  | 
	
		
	 | 
 
 
	
		
		DarkEagle 
 
 
		
			Junior Member 
			
			
			
 
			
	Posts: 15 
	Threads: 3 
	Joined: Jun 2011
	
 Reputation: 
0
		
	 | 
	
		
			
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.   
			 
			
			
 
Some time's people aren't people! 
In Developement:Dark Path 13% 
			
		 |  
	 
 | 
 
	| 08-05-2011, 06:29 PM  | 
	
		
	 | 
 
 
	 
 |