30.01.2014, 11:25
Loop thru all the teams and compare which score is the higher?
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.
pawn Код:
new higher;
for(new i = 0; i < TEAMS; i ++)
if(team[i] > higher)
higher = team[i];
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.