SA-MP Forums Archive
Get highest variable - 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)
+--- Thread: Get highest variable (/showthread.php?tid=656220)



Get highest variable - 3417512908 - 10.07.2018

My command:
Код:
CMD:guide(playerid)
{
new frplayer;
new syplayer;
new yjbsplayer;
new jtlplayer;
new bzcplayer;
new scplayer;
new pdfcplayer;
new kzplayer;
new d1player;
new d2player;
new fkzzplayer;
new bphpplayer;
new djjhplayer;
new zjdzplayer;
foreach(Player,i)
{
    if(IsPlayerConnected(i))
    {
        if(GameMode[i]==0) frplayer++;
        if(GameMode[i]==1) fkzzplayer++;
        if(GameMode[i]==2) fkzzplayer++;
        if(GameMode[i]==3) syplayer++;
        if(GameMode[i]==4) yjbsplayer++;
        if(GameMode[i]==5) jtlplayer++;
        if(GameMode[i]==6) bphpplayer++;
        if(GameMode[i]==7) bphpplayer++;
        if(GameMode[i]==9) djjhplayer++;
        if(GameMode[i]==10) bzcplayer++;
        if(GameMode[i]==11) pdfcplayer++;
        if(GameMode[i]==12) kzplayer++;
        if(GameMode[i]==13) d1player++;
        if(GameMode[i]==14) d2player++;
        if(GameMode[i]==15) scplayer++;
        if(GameMode[i]==16) zjdzplayer++;
        if(GameMode[i]==17) zjdzplayer++;
        SendClientMessage(playerid,-1,"loop");
    }
}
//What`s next?
return 1;
}
Now.I want to get highest variable from them.How to do that?


Re: Get highest variable - 3417512908 - 10.07.2018

anyoneeeeeeee?


Re: Get highest variable - Florin48 - 10.07.2018

Can you be more explicit about what you want to do?