SA-MP Forums Archive
Mmmh. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Mmmh. (/showthread.php?tid=119531)



Mmmh. - `FuTuRe- - 08.01.2010

I forgot which code it is to play a sound for everyone...
This might be dumb.. i know

I had This
pawn Код:
PlayerPlaySound(1062, 0, 0, 0);
And i am getting this warning.
Код:
(2063) : warning 202: number of arguments does not match definition



Re: Mmmh. - BMUK - 08.01.2010

You willneed to do a loop and use PlayerPlaySound(playerid, 1130, 0.0, 0.0, 0.0);

There is no native function to play it for all players although you easily could make such a function using the mentioned loop

To make: PlayerPlayerSoundForAll(soundid,x,y,z);


Re: Mmmh. - `FuTuRe- - 08.01.2010

Getting a error

pawn Код:
PlayerPlayerSoundForAll(1062, 0, 0, 0); // line 2093
stock PlayerSoundForAll(1062) // line 445
    {
    for(new i = 0; i < MAX_PLAYERS; i++) PlayerPlaySound(i, 1062, 0.0, 0.0, 0.0);
    }
Код:
(445) : error 029: invalid expression, assumed zero
(445) : error 017: undefined symbol "PlayerSoundForAll"
(2093) : error 017: undefined symbol "PlayerPlayerSoundForAll"



Re: Mmmh. - `FuTuRe- - 08.01.2010

getting this now.
Код:
(2088) : error 017: undefined symbol "PlayerPlaySoundForAll"
(2194) : error 010: invalid function or declaration/code]