Музыка играет но не вся, только 3 трека из 12!
ВСЕ ТРЕКИ mp3 128kbps 44khz КРОМЕ NewYear12 48khz 320kbps
путь проверял вроде всё норм! пробовал с с другим round sound всеравно не робит!=(
ЧТО НЕ ТАК???
roundsound.sma
#include <amxmodx>
#include <amxmisc>
#include <engine>
public plugin_init()
{
register_plugin("roundsound","0.1","many")
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(1,6)
client_cmd(0,"mp3 stop")
switch(rand)
{
case 1: client_cmd(0,"mp3 play sound/NewYear/NewYear1")
case 2: client_cmd(0,"mp3 play sound/NewYear/NewYear2")
case 3: client_cmd(0,"mp3 play sound/NewYear/NewYear3")
case 4: client_cmd(0,"mp3 play sound/NewYear/NewYear4")
case 5: client_cmd(0,"mp3 play sound/NewYear/NewYear5")
case 6: client_cmd(0,"mp3 play sound/NewYear/NewYear6")
}
return PLUGIN_CONTINUE
}
public ct_win()
{
new rand = random_num(1,6)
client_cmd(0,"mp3 stop")
switch(rand)
{
case 1: client_cmd(0,"mp3 play sound/NewYear/NewYear7")
case 2: client_cmd(0,"mp3 play sound/NewYear/NewYear8")
case 3: client_cmd(0,"mp3 play sound/NewYear/NewYear9")
case 4: client_cmd(0,"mp3 play sound/NewYear/NewYear10")
case 5: client_cmd(0,"mp3 play sound/NewYear/NewYear11")
case 6: client_cmd(0,"mp3 play sound/NewYear/NewYear12")
}
return PLUGIN_CONTINUE
}
public plugin_precache()
{
precache_sound("NewYear/NewYear1.mp3")
precache_sound("NewYear/NewYear2.mp3")
precache_sound("NewYear/NewYear3.mp3")
precache_sound("NewYear/NewYear4.mp3")
precache_sound("NewYear/NewYear5.mp3")
precache_sound("NewYear/NewYear6.mp3")
precache_sound("NewYear/NewYear7.mp3")
precache_sound("NewYear/NewYear8.mp3")
precache_sound("NewYear/NewYear9.mp3")
precache_sound("NewYear/NewYear10.mp3")
precache_sound("NewYear/NewYear11.mp3")
precache_sound("NewYear/NewYear12.mp3")
return PLUGIN_CONTINUE
}Добавлено (2011-12-10, 19:51)
---------------------------------------------
СРОЧНО ХЭЛП ПЛИЗ! ЗА НАГРАДУ И +++ПЛЮСИКИ!
Добавлено (2011-12-10, 21:48)
---------------------------------------------
!!!
Добавлено (2011-12-11, 13:18)
---------------------------------------------
???