Get the highest value?
#4

Quote:
Originally Posted by Jeffry
Посмотреть сообщение
pawn Код:
new Highest, Player
for(new i=0; i<MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
         if(Kills[i] > Highest) Highest = Kills[i], Player=i;
    }
}
printf("Player %d (Name) with %d score", Player, Highest);
I hope you understand it.
pawn Код:
new Player;
for(new i=0; i<MAX_PLAYERS; i++)
{
    if(IsPlayerConnected(i))
    {
         if(Kills[i] > Kills[Player]) Player = i;
    }
}
printf("Player %d (Name) with %d score", Player, Kills[Player]);
Reply


Messages In This Thread
Get the highest value? - by XCarBOn - 07.03.2011, 11:01
Re: Get the highest value? - by Davz*|*Criss - 07.03.2011, 11:04
Re: Get the highest value? - by Jeffry - 07.03.2011, 11:07
Re: Get the highest value? - by Cameltoe - 07.03.2011, 11:15
Re: Get the highest value? - by Jeffry - 07.03.2011, 11:34
Re: Get the highest value? - by RyDeR` - 07.03.2011, 12:12
Re: Get the highest value? - by XCarBOn - 07.03.2011, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)