| 
		
	
		| theodorg   Junior Member
 
 Posts: 44
 Threads: 11
 Joined: Aug 2013
 Reputation: 
0
 | 
			| music help 
 
				Why isnt this music script working??{
 void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
 PlayMusic(creep.ogg, false, 1, 1, 1, true);
 }
 |  |  
	| 08-24-2014, 06:58 PM |  |  
	
		| Radical Batz   Posting Freak
 
 Posts: 953
 Threads: 145
 Joined: Dec 2013
 Reputation: 
25
 | 
			| RE: music help 
 
				 (08-24-2014, 06:58 PM)theodorg Wrote:  Why isnt this music script working??{
 void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
 PlayMusic("creep.ogg", false, 1, 1, 1, true);
 }
 
It is suppose to look like this
 void OnStart(){
 PlayMusic(creep.ogg, false, 1, 1, 1, true);
 }
 
 
 
				
(This post was last modified: 08-24-2014, 07:04 PM by Radical Batz.)
 |  |  
	| 08-24-2014, 07:00 PM |  |  
	
		| theodorg   Junior Member
 
 Posts: 44
 Threads: 11
 Joined: Aug 2013
 Reputation: 
0
 | 
			| RE: music help 
 
				 (08-24-2014, 07:00 PM)Dr.Badcat Wrote:   (08-24-2014, 06:58 PM)theodorg Wrote:  Why isnt this music script working??{
 void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
 PlayMusic(creep.ogg, false, 1, 1, 1, true);
 }
 It is suppose to look like this
 
 
 void OnStart(){
 PlayMusic(creep.ogg, false, 1, 1, 1, true);
 }
 
 
oh thx
			 |  |  
	| 08-24-2014, 07:03 PM |  |  
	
		| Neelke   Senior Member
 
 Posts: 668
 Threads: 82
 Joined: Apr 2013
 Reputation: 
26
 | 
			| RE: music help 
 
				void OnStart(){
 PlayMusic("creep.ogg", false, 1, 1, 1, true);
 }
No quotes in PlayMusic. Added them there for you.
 
And I'm assuming you don't have a void OnStart in the script?
			 
 Derp. |  |  
	| 08-24-2014, 07:04 PM |  |  
	
		| DnALANGE  Banned
 
 Posts: 1,549
 Threads: 73
 Joined: Jan 2012
 | 
			| RE: music help 
 
				 (08-24-2014, 07:00 PM)Dr.Badcat Wrote:   (08-24-2014, 06:58 PM)theodorg Wrote:  Why isnt this music script working??{
 void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
 PlayMusic("creep.ogg", false, 1, 1, 1, true);
 }
 It is suppose to look like this
 
 
 void OnStart(){
 PlayMusic(creep.ogg, false, 1, 1, 1, true);
 }
 
 
badcat, next time you want to help someone tell then the right thing... 
The creep must have "creep"...
			 |  |  
	| 08-24-2014, 08:17 PM |  |  
	
		| Radical Batz   Posting Freak
 
 Posts: 953
 Threads: 145
 Joined: Dec 2013
 Reputation: 
25
 | 
			| RE: music help 
 
				 (08-24-2014, 08:17 PM)DnALANGE Wrote:   (08-24-2014, 07:00 PM)Dr.Badcat Wrote:   (08-24-2014, 06:58 PM)theodorg Wrote:  Why isnt this music script working??{
 void PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
 PlayMusic("creep.ogg", false, 1, 1, 1, true);
 }
 It is suppose to look like this
 
 
 void OnStart(){
 PlayMusic(creep.ogg, false, 1, 1, 1, true);
 }
 
 badcat, next time you want to help someone tell then the right thing...
 The creep must have "creep"...
 
I forgot coding XD What do you want me to do?
 
I haven't coded like in about 2 months
			 
 
				
(This post was last modified: 08-24-2014, 08:23 PM by Radical Batz.)
 |  |  
	| 08-24-2014, 08:19 PM |  |  |