Код
error 037: invalid string (possibly non-terminated string)
Добавлено (2013-04-17, 18:37)
---------------------------------------------
Пофиксил:
Код
//RoundSound.amxx -by PaintLancer
#include <amxmodx>
public plugin_init()
{
register_plugin("RoundSound","1.0","PaintLancer")
register_event("SendAudio", "t_win", "a", "2&%!MRAD_terwin")
register_event("SendAudio", "ct_win", "a", "2&%!MRAD_ctwin")
}
public t_win()
{
new rand = random_num(0,4)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk narezky/1")
case 1: client_cmd(0,"spk narezky/2")
case 2: client_cmd(0,"spk narezky/3")
case 3: client_cmd(0,"spk narezky/4")
case 4: client_cmd(0,"spk narezky/5")
}
return PLUGIN_HANDLED
}
public ct_win()
{
new rand = random_num(0,4)
client_cmd(0,"stopsound")
switch(rand)
{
case 0: client_cmd(0,"spk narezky/6")
case 1: client_cmd(0,"spk narezky/7")
case 2: client_cmd(0,"spk narezky/8")
case 3: client_cmd(0,"spk narezky/9")
case 4: client_cmd(0,"spk narezky/10")
}
return PLUGIN_HANDLED
}
public plugin_precache()
{
precache_sound("narezky/11.wav")
precache_sound("narezky/12.wav")
precache_sound("narezky/13.wav")
precache_sound("narezky/14.wav")
precache_sound("narezky/15.wav[color=green]"[/color])
precache_sound("narezky/16.wav")
precache_sound("narezky/17.wav")
return PLUGIN_CONTINUE
}