Checking which team has higher score.
#3

Loop thru all the teams and compare which score is the higher?

pawn Код:
new higher;
for(new i = 0; i < TEAMS; i ++)
     if(team[i] > higher)
           higher = team[i];
I recommend having teams stored in arrays on this case.

Alternatively you'd have to do single manual checks (if team1 > team 2 && team1 > team3) ...

If you only have two teams then refeer to the code posted above.
Reply


Messages In This Thread
Checking which team has higher score. - by JaKe Elite - 30.01.2014, 11:19
Re: Checking which team has higher score. - by Misiur - 30.01.2014, 11:23
Re: Checking which team has higher score. - by CuervO - 30.01.2014, 11:25

Forum Jump:


Users browsing this thread: 1 Guest(s)