Get highest variable
#1

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?
Reply


Messages In This Thread
Get highest variable - by 3417512908 - 10.07.2018, 11:20
Re: Get highest variable - by 3417512908 - 10.07.2018, 11:44
Re: Get highest variable - by Florin48 - 10.07.2018, 12:20

Forum Jump:


Users browsing this thread: 2 Guest(s)