How do I use client_cmd(spk) properly?
I want to play random sound in each different conditions, but it constantly calls for new RandomSound[64], I don't know if that was a proper way to call each of them
Making each audio groups for each condition, one condition play random sound within its group PHP Code:
PHP Code:
PHP Code:
I tried putting "RandomSound[64]" before the conditional operators, but I fear I'll have some issues with "formatex()" Is there another way of using 'spk' each audio group in an optimized way? |
Re: How do I use client_cmd(spk) properly?
You don't need formatex.
Code:
new RandomSound[64]Code:
client_cmd(target, "spk %s", g_SnapSounds[random(sizeof(g_SnapSounds))]) |
Re: How do I use client_cmd(spk) properly?
Code:
no idea why you're using formatex to copy the string in the first place |
Re: How do I use client_cmd(spk) properly?
Quote:
Quote:
|
| All times are GMT -4. The time now is 02:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.