Checking the highest
#3

Here's a way to do it, surely it's a better and easyier way but i can't come out with anything else at this moment:

pawn Код:
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
}
Hope it helped
Reply


Messages In This Thread
Checking the highest - by Dan. - 06.08.2012, 16:53
Respuesta: Checking the highest - by HarlemSAMP - 06.08.2012, 16:56
Re: Checking the highest - by Ranama - 06.08.2012, 17:18
Re: Checking the highest - by Dan. - 06.08.2012, 17:31

Forum Jump:


Users browsing this thread: 2 Guest(s)