06.08.2012, 16:53
How to detect which variable has the highest value?
I need to check, which team has the highest value.
pawn Код:
new england, russia, iraq, mexico;
new england, russia, iraq, mexico;
new england, russia, iraq, mexico;
if(england > russia && iraq && mexico){
SendClientMessageToAll(COLOR_WHITE, "England have taken the lead");//do you thing here
}
else if(russia > england && iraq && mexico){
SendClientMessageToAll(COLOR_WHITE, "Russia have taken the lead");//do you thing here
}
else if(iraq > russia && england && mexico){
SendClientMessageToAll(COLOR_WHITE, "Iraq have taken the lead");//do you thing here
}
else{//this means that mexico is in the lead
SendClientMessageToAll(COLOR_WHITE, "Mexico have taken the lead");//do you thing here
}