SSEAlexander 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 422 
	Threads: 26 
	Joined: Feb 2014
	
 Reputation: 
1
		
	 | 
	
		
			
  
[SOLVED]Script error.Help. 
			 
			
				i got error  
"main (44,2) : ERR : Unexpected end of file" 
i dont even know that that means... 
 
void OnStart() 
{    
   PlayMusic("music.ogg", true, 1, 5, 0, true); 
   SetSanityDrainDisabled(true); 
  AddEntityCollideCallback("Player","AMB1","amb1",true,1) ; 
  AddEntityCollideCallback("Player","b3","nope",true,1) ; 
  AddEntityCollideCallback("Player","AMB1_1","horrors",true,1) ; 
  RemoveItem("syr_2"); 
  GiveItemFromFile("syr_3", "radioe.ent"); 
  AddEntityCollideCallback("Player","getmatch","matchready",true,1) ; 
} 
 
 
void amb1(string &in asParent, string &in asChild, int alState)  
{ 
      PlayGuiSound("087bamb1.ogg", 1.4f); 
} 
 
 
void nope(string &in asParent, string &in asChild, int alState)  
{ 
      PlayGuiSound("no87b.ogg", 1.4f); 
      SetLightVisible("PointLight_1", false); 
} 
 
 
void horrors(string &in asParent, string &in asChild, int alState)  
{ 
      PlayGuiSound("horror17bscp.ogg", 1.4f); 
} 
 
 
void matchready(string &in asParent, string &in asChild, int alState) { 
{     
      SetMessage("Journal", "matchisready", 6.0f); 
      SetEntityActive("matchuse",true) ; 
} 
 
 
void usethematch(string &in entity) { 
{     
            SetLightVisible("matchl", true); 
            PlayGuiSound("match087b.ogg", 1.4f); 
}
			 
			
			
			
				
(This post was last modified: 04-26-2014, 11:44 AM by SSEAlexander.)
 
				
			 
		 |  
	 
 | 
 
	| 04-26-2014, 11:37 AM  | 
	
		
	 | 
 
 
	
		
		PutraenusAlivius 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 4,713 
	Threads: 75 
	Joined: Dec 2012
	
 Reputation: 
119
		
	 | 
	
		
			
RE: Script error.Help. 
			 
			
				I don't think this is your entire script. Can you post everything?
			 
			
			
 
"Veni, vidi, vici." 
"I came, I saw, I conquered." 
			
		 |  
	 
 | 
 
	| 04-26-2014, 11:40 AM  | 
	
		
	 | 
 
 
	
		
		Romulator 
 
 
		
			Not Tech Support ;-) 
			
			
			
 
			
	Posts: 3,628 
	Threads: 63 
	Joined: Jan 2013
	
 Reputation: 
195
		
	 | 
	
		
			
RE: Script error.Help. 
			 
			
				void matchready(string &in asParent, string &in asChild, int alState) { {  SetMessage("Journal", "matchisready", 6.0f); SetEntityActive("matchuse",true) ; }
 
  void usethematch(string &in entity) { {  SetLightVisible("matchl", true); PlayGuiSound("match087b.ogg", 1.4f); } 
 
 
Remove the { at the end of the voids. Otherwise, you have more than one and no countering braces.
			  
			
			
 
Discord: Romulator#0001
![[Image: 3f6f01a904.png]](https://puu.sh/zOxJg/3f6f01a904.png)  
			
				
(This post was last modified: 04-26-2014, 11:44 AM by Romulator.)
 
				
			 
		 |  
	 
 | 
 
	| 04-26-2014, 11:43 AM  | 
	
		
	 | 
 
 
	
		
		SSEAlexander 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 422 
	Threads: 26 
	Joined: Feb 2014
	
 Reputation: 
1
		
	 | 
	
		
			
RE: Script error.Help. 
			 
			
				 (04-26-2014, 11:43 AM)Romulator Wrote:  void matchready(string &in asParent, string &in asChild, int alState) { {  SetMessage("Journal", "matchisready", 6.0f); SetEntityActive("matchuse",true) ; }
 
  void usethematch(string &in entity) { {  SetLightVisible("matchl", true); PlayGuiSound("match087b.ogg", 1.4f); } 
 
  
Remove the { at the end of the voids. Otherwise, you have more than one and no countering braces. thanks.I mostly got problems with that scripting   
			 
			
			
			
		 |  
	 
 | 
 
	| 04-26-2014, 11:44 AM  | 
	
		
	 | 
 
 
	 
 |