| LulleBulle   Member
 
 Posts: 101
 Threads: 33
 Joined: Feb 2012
 Reputation: 
0
 | 
			| Unexpected end of file 
 
				I'm having a slight problem. My script code in my .hps file is working perfect and the map works but when I add the following:
 on void OnStart() i add AddEntityCollideCallback("CloseDoor", "Player", DoorClose", true, 1);
 
 and then I add
 
 void DoorClose(correct syntax)
 {
 SetSwingDoorClosed("mansion_2", true, false);
 }
 
 
 and for some reason I get unexpected end of line, why is this?
 |  | 
	| 06-25-2012, 05:45 PM |  | 
	
		| MaZiCUT   Senior Member
 
 Posts: 536
 Threads: 31
 Joined: Jun 2012
 Reputation: 
17
 | 
			| RE: Unexpected end of file 
 
				It's soppoused to be
 void OnStart()
 {
 AddEntityCollideCallback("Player", "CloseDoor", "DoorClose", true, 1);
 }
 
 
 void DoorClose(correct syntax)
 {
 SetSwingDoorClosed("mansion_2", true, false);
 }
 
 Hi. 
				
(This post was last modified: 06-25-2012, 05:52 PM by MaZiCUT.)
 |  | 
	| 06-25-2012, 05:50 PM |  | 
	
		| Cruzore   Senior Member
 
 Posts: 301
 Threads: 2
 Joined: Jun 2012
 Reputation: 
37
 | 
			| RE: Unexpected end of file 
 
				AddEntityCollideCallback("CloseDoor", "Player", DoorClose", true, 1);missing " at the start of the called function.
 |  | 
	| 06-25-2012, 05:51 PM |  |