Raised This Month: $32 Target: $400
 8% 

client_cmd(0, "spk misc/sound.wav ")" fail under certain circumstances


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eduardolucioac
Member
Join Date: Jan 2016
Old 01-28-2016 , 18:23   client_cmd(0, "spk misc/sound.wav ")" fail under certain circumstances
Reply With Quote #1

The function "client_cmd(0, "spk misc/sound.wav ")" fail to perform the sound under certain circumstances. Any way to solve this?

I tried using "emit_sound" that works well, but I want that just the player (client) hear the event.

Thanks!

[]'s
eduardolucioac is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-28-2016 , 19:22   Re: client_cmd(0, "spk misc/sound.wav ")" fail under certain circumstances
Reply With Quote #2

Post your code.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Dr Zayd
Senior Member
Join Date: Jun 2014
Location: forums.alliedmods.net
Old 01-29-2016 , 03:49   Re: client_cmd(0, "spk misc/sound.wav ")" fail under certain circumstances
Reply With Quote #3

try /sound/misc/sound.wav ...
__________________
Invisible System | 100%
ـــــــــــــــــــــــــــــ
Anti setinfo check | Ez Plugin and lite
ـــــــــــــــــــــــــــــ
[ZP] Free VIP Menu | Free VIP menu | ZP-Mod |
Dr Zayd is offline
dark_style
Senior Member
Join Date: Jul 2009
Location: Bulgaria
Old 01-29-2016 , 03:51   Re: client_cmd(0, "spk misc/sound.wav ")" fail under certain circumstances
Reply With Quote #4

Quote:
Originally Posted by Dr Zayd View Post
try /sound/misc/sound.wav ...
The sound/ directory shouldn't be included when dealing with .wav.
__________________



dark_style is offline
eduardolucioac
Member
Join Date: Jan 2016
Old 01-29-2016 , 09:28   Re: client_cmd(0, "spk misc/sound.wav ")" fail under certain circumstances
Reply With Quote #5

Gentlemen,

The call to "client_cmd(0, "spk misc/sound.wav")" function is properly and effectively made in my code. What happens is that sometimes the "client_cmd" is called but sound does not play. This seems to be a limitation of amx mod x or other. There is a way to workaround this or any other function that is more reliable?

Thanks!

[]'s
eduardolucioac is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-29-2016 , 11:18   Re: client_cmd(0, "spk misc/sound.wav ")" fail under certain circumstances
Reply With Quote #6

I never had any problems with it, so if you want help post your code.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-29-2016 , 19:15   Re: client_cmd(0, "spk misc/sound.wav ")" fail under certain circumstances
Reply With Quote #7

Sounds played this way can be stopped by other sounds being played by the game. So, likely, another sound is getting played close to the time you send your sound. This is extremely common and cannot be prevented afaik.
__________________
fysiks is offline
eduardolucioac
Member
Join Date: Jan 2016
Old 01-29-2016 , 22:47   Re: client_cmd(0, "spk misc/sound.wav ")" fail under certain circumstances
Reply With Quote #8

Exactly what I imagined! Thanks for the confirmation fysiks!
[]'s
eduardolucioac 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 07:26.


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