How to get the highest var?
#3

Create a loop... Like this:

pawn Код:
new Mkillsid=0;
for(new i=0; i<=MAX_PLAYERS; i++)if(IsPlayerConnected(i))if(kills[i]>kills[Mkillsid])Mkillsid=i;
The playerid with highest number of kills will be stored in the variable Mkillsid.

Cheers.

#Edit#: Sry 2 late :/
Reply


Messages In This Thread
How to get the highest var? - by Striker_Moe - 06.12.2009, 16:34
Re: How to get the highest var? - by dice7 - 06.12.2009, 16:38
Re: How to get the highest var? - by DeathOnaStick - 06.12.2009, 16:41

Forum Jump:


Users browsing this thread: 4 Guest(s)