Raised This Month: $ Target: $400
 0% 

emit_sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sniffi
Junior Member
Join Date: Mar 2010
Old 08-12-2011 , 03:54   emit_sound
Reply With Quote #1

Hi, i have a problem that emit_sound don`t play sound.
Help me , please.
Here is a part of code:

Code:
new const sounds[] = "sound/mysound.wav" 

public plugin_init() { 
    //...     
//only for test     
register_clcmd("say /test","music") 
}  
public music(id) {          

emit_sound(id,CHAN_STREAM,sounds,VOL_NORM,ATTN_NORM,0,PITCH_NORM) 
}
Sniffi is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 08-12-2011 , 05:38   Re: emit_sound
Reply With Quote #2

1) Is your sound precached?
2) Try to use another channel. (CHAN_AUTO for ex.)
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Sniffi
Junior Member
Join Date: Mar 2010
Old 08-12-2011 , 07:19   Re: emit_sound
Reply With Quote #3

1. Yes , its precached
2.I try everything, I use all channels , attns ... , and when i play it with client_cmd(id,"speak %s",sounds) it`s good and when I use emit_sound it doesn`t work.
I try use another song and still nothing.
(song parameters : mono , 16 bit , wav)
Sniffi is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-12-2011 , 08:27   Re: emit_sound
Reply With Quote #4

forprecache sound you dont need sound/ for the path... that means its in sound/sound/file.wav

also for future you should use

[php][/php] tags.
Doc-Holiday is offline
Old 08-12-2011, 12:11
Pur3Biatch
This message has been deleted by Pur3Biatch. Reason: stupid post
Sniffi
Junior Member
Join Date: Mar 2010
Old 08-12-2011 , 13:09   Re: emit_sound
Reply With Quote #6

Thank you , I forgot on it
Sniffi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode