[HELP] Run time error 4: index out of bounds
Why this error comes?
Code:
L 08/18/2010 - 14:15:40: [AMXX] Displaying debug trace (plugin "zombie_plague40.amxx")Code:
emit_sound( 0, CHAN_VOICE, speak[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM )Code:
public countdown(id) |
Re: [HELP] Run time error 4: index out of bounds
Since you are playing it to everybody, I would use
PHP Code:
Good thing is MP3 is smaller than WAV with very little quality changes. EDIT: Btw if you have a CVar remember to use return PLUGIN_HANDLED instead of return to prevent run time error 4. |
Re: [HELP] Run time error 4: index out of bounds
However, if you want to keep it in .wav, you can use client_cmd(0, "spk file name")
@Excalibur.007 fvox/one.wav, and the others are the included countdown file names. Not that easy to convert, or it is just a pain since everyone already has the files anyways. And his runtime is that emit_sound() has to go from a real players id (I might be mistaken). It is meant so that if you are close enough to them, you can hear it. Like switching to a knife, turning on nightvision, etc. If I am right though, the runtime error is occuring because 0 is not a player's id. |
| All times are GMT -4. The time now is 22:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.