this code:
Code:
#include <amxmodx>
#include <fakemeta>
new rep_Planted[] = "sounds/JingleBell.mp3"
new rep_Defused[] = "sounds/Laugh.mp3"
new game_Planted[5][] =
{
"weapons/c4_beep1.wav",
"weapons/c4_beep2.wav",
"weapons/c4_beep3.wav",
"weapons/c4_beep4.wav",
"weapons/c4_beep5.wav"
}
new game_Defused[] = "weapons/c4_disarm.wav"
public plugin_init() {
register_forward(FM_EmitSound, "replace_sound");
}
public replace_sound(ent, channel, const sound[]) {
if(equali(sound, game_Defused)) {
engfunc(EngFunc_EmitSound,ent,rep_Defused);
return FMRES_SUPERCEDE;
}
else {
new listsize = sizeof game_Planted
for(new i; i<listsize; i++) {
if(equali(sound, game_Planted[i])) {
engfunc(EngFunc_EmitSound,ent,rep_Planted);
return FMRES_SUPERCEDE;
}
}
}
return FMRES_IGNORED;
}
crashes the client with this error message:
Code:
EMIT_SOUND:VOLUME=0
why lol and how to fix if possible plz
__________________