Loops
#3

pawn Код:
stock GetLowestCountTeam()
{
    new c0, c1;
    for (new i = 0; i < MAX_PLAYERS; i ++)
    {
           if (Team[i] == Team0) { c0 += 1; }
           else if (Team[i] == Team1) { c1 += 1; }
     }
     if (c0 < c1) return Team0;
     else if (c0 > c1) return Team1;
}
^ You mean this?
Reply


Messages In This Thread
Loops - by xir - 03.04.2011, 14:31
Re: Loops - by xir - 03.04.2011, 15:21
Re: Loops - by admantis - 03.04.2011, 16:38

Forum Jump:


Users browsing this thread: 2 Guest(s)