| 
		
	
		| Sabrak   Junior Member
 
 Posts: 7
 Threads: 3
 Joined: Jul 2013
 Reputation: 
0
 | 
			| Need some help 
 
				So, i have this error: Quote:FATAL ERROR: Could not load script file... ...main (63, 2) : ERR : Unexpected end of file 
This is my script:
 void OnStart(){
 AddEntityCollideCallback("Player", "ScriptArea_1", "pianoclose", true, 1);
 AddEntityCollideCallback("Player", "Skript_2", "Sprava_1", true, 1);
 AddEntityCollideCallback("Player", "Ou", "Nazev1", true, 1);
 AddUseItemCallback("", "main", "Sloboda", "level_dvere", true);
 }
 
 void Sprava_1(string &in asParent, string &in asChild, int alState)
 {
 AddTimer("", 0.7f, "voice_00_33");
 }
 
 void voice_00_33(string &in asTimer)
 {
 SetMessage("TheVoice_33", "00_33", 15.0);
 }
 
 void Nazev1(string &in asParent, string &in asChild, int alState)
 {
 PlayMusic("05_event_steps.ogg", false, 1, 3, 100, true);
 StartPlayerLookAt("corpse_male_1", 5, 5, "");
 PlaySoundAtEntity("", "react_breath.snt", "Player", 0, false);
 AddTimer("", 5, "Timer2");
 AddTimer("", 5, "Timer1");
 }
 
 void Timer1(string &in asEntity)
 {
 StopPlayerLookAt();
 }
 
 void level_dvere(string &in asItem, string &in asEntity)
 {
 SetLevelDoorLocked("Sloboda", false);
 RemoveItem("main");
 PlaySoundAtEntity("", "unlock_door", "Player", 0, false);
 }
 
 void Timer2(string &in asEntity)
 {
 SetMessage("TheVoice_43", "00_06", 10.0);
 }
 
 void pianoclose(string &in asParent, string &in asChild, int alState)
 {
 AddPropImpulse("Piano", 0, 0, 400, "world");
 SetLeverStuckState("Piano", -1, true);
 CreateParticleSystemAtEntity("", "ps_hit_wood", "BreakEffect", true);
 PlaySoundAtEntity("", "break_wood.snt", "Player", 0, false);
 GiveSanityDamage(20.0f, true);
 PlaySoundAtEntity("", "react_scare.snt, "Player", 0, false);
 }
 
 void OnEnter()
 {
 
 }
 
 void OnLeave()
 {
 
 }
Does anybody know whats wrong with this? Thanks for help   
				
(This post was last modified: 07-07-2013, 03:00 PM by Sabrak.)
 |  |  
	| 07-07-2013, 01:30 PM |  |  
	
		| Kullin   Member
 
 Posts: 218
 Threads: 23
 Joined: May 2013
 Reputation: 
3
 | 
			| RE: Need some help 
 
				Your either missing a " or { or} or a,  in your script
			 |  |  
	| 07-07-2013, 02:40 PM |  |  
	
		| Tomato Cat   Senior Member
 
 Posts: 287
 Threads: 2
 Joined: Sep 2012
 Reputation: 
20
 | 
			| RE: Need some help 
 
				PlaySoundAtEntity("", "react_scare.snt, "Player", 0, false); 
This line here is missing a parentheses. ^
 PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false); 
 |  |  
	| 07-07-2013, 02:47 PM |  |  
	
		| Sabrak   Junior Member
 
 Posts: 7
 Threads: 3
 Joined: Jul 2013
 Reputation: 
0
 | 
			| RE: Need some help 
 
				thaaank you very very much! i was searching a mistake for almost hours! thank you    |  |  
	| 07-07-2013, 02:49 PM |  |  
	
		| PutraenusAlivius   Posting Freak
 
 Posts: 4,713
 Threads: 75
 Joined: Dec 2012
 Reputation: 
119
 | 
			| RE: Need some help 
 
				PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
 You forgot to add a closing quotation brace.
 
 [EDIT : Goddamn you Tomato Cat.]
 
 "Veni, vidi, vici.""I came, I saw, I conquered."
 |  |  
	| 07-07-2013, 02:50 PM |  |  |