SA-MP Forums Archive
giveallscore - 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: giveallscore (/showthread.php?tid=142198)



giveallscore - r2mv - 17.04.2010

Does anyone make giveallscore command? I have givescore but not too good ...


Re: giveallscore - Torran - 17.04.2010

Use a loop

pawn Код:
for (new i = 0; i != MAX_PLAYERS; ++i)
Or foreach

http://forum.sa-mp.com/index.php?topic=117573.0


Re: giveallscore - r2mv - 17.04.2010

no work/.....


Re: giveallscore - Torran - 17.04.2010

pawn Код:
for (new i = 0; i != MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i))
{
SetPlayerScore(i, SCORE);
}
}
Simple as that..