Hi! I just want to play a .waw file.
Here is part of my code:
Code:
new SoundNames[SoundNR][] =
{
"Yes",
"May The Force Be With You",
"Helloo Babee",
"The One and Only"
}
new SoundNamesID[SoundNR][] =
{
"yes.waw",
"FORCE.WAW",
"HIBABE.WAW",
"THEONE.WAW"
}
and
Code:
new Name[33]
get_user_name(id,Name,charsmax(Name))
if(SoundID[id][item] == 1)
{
chat_color(id,"!y[!gSOUNDS!y]!g Ai ales !team%s !gsunetul va fi aplicat!",SoundNames[item])
new sBuffer[128]
format(sBuffer,127,"^"%s^"",SoundNamesID[item])
emit_sound(id,CHAN_AUTO,sBuffer,VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
//client_cmd( 0, "spk ^"%s^"", SoundNamesID[item] );
HasSound[id] = 1
format(HSoundID[id],31,"%s",SoundNamesID[item])
chat_color(0,"!y[!gSOUNDs!y]!g Jucatorul !team%s !ga ales sunetul !team%s!g!",Name,SoundNames[item])
}
It doesn't want to play in any way possible...
EDIT: PRECACHE
Code:
precache_sound("FORCE.WAW")
precache_sound("HIBABE.WAW")
precache_sound("THEONE.WAW")
precache_sound("yes.waw")