24.12.2009, 13:18
How do i make a sound play for everyone i treid PlaySound(1159, 0.0, 0.0, 0.0); but that doesn't work!
PlaySoundForAll(sound) { for (new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) PlayerPlaySound(i,sound,0,0,0); } }
stock PlaySoundForAll(soundid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
PlayerPlaySound(i,soundid,0,0,0);
}
}
return 1;
}
MAX_PLAYERS
for(new playerid, gmax = GetMaxPlayers(); playerid < gmax; playerid++)
for(new i = 0, gmax = GetMaxPlayers(); i<gmax; i++) { if(!IsPlayerConnected(i)) continue;
Originally Posted by CJ101
Код:
PlaySoundForAll(sound) { for (new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) PlayerPlaySound(i,sound,0,0,0); } } |
*********gamemodes\gf.pwn(26650) : error 017: undefined symbol "PlaySoundForAll" |