| 
		
	
		| Scary22   Junior Member
 
 Posts: 2
 Threads: 1
 Joined: May 2011
 Reputation: 
0
 | 
			| 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 |  |  
	
		| Tanshaydar   From Beyond
 
 Posts: 3,085
 Threads: 17
 Joined: Mar 2009
 Reputation: 
67
 | 
			| 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 |  |  
	
		| Scary22   Junior Member
 
 Posts: 2
 Threads: 1
 Joined: May 2011
 Reputation: 
0
 | 
			| 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 |  |  
	
		| Kyle   Posting Freak
 
 Posts: 911
 Threads: 36
 Joined: Sep 2010
 Reputation: 
7
 | 
			| 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.   
 |  |  
	| 05-20-2011, 10:55 AM |  |  |