Top 10 ?
#3

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
to get the highest score use this
pawn Код:
new highestid = INVALID_PLAYER_ID, highest = -1;
for(new i = 0; i < MAX_PLAYERS; ++i)
{
    if(GetPlayerScore(i) > highest)
    {
        highestid = i;
        highest = GetPlayerScore(i);
    }
}
if(highestid != INVALID_PLAYER_ID)
{
    //your function...
}
ok ty but i want the TOP 10 players /:
Reply


Messages In This Thread
Top 10 ? - by The-Warrior - 16.07.2011, 15:38
Re: Top 10 ? - by park4bmx - 16.07.2011, 15:40
Re: Top 10 ? - by The-Warrior - 16.07.2011, 15:41
Re: Top 10 ? - by Setkus - 16.07.2011, 16:04
Re: Top 10 ? - by park4bmx - 16.07.2011, 16:34
Re: Top 10 ? - by Shadoww5 - 16.07.2011, 16:50
Re: Top 10 ? - by Ronaldo_raul™ - 16.07.2011, 18:43
Re: Top 10 ? - by Shadoww5 - 16.07.2011, 19:09
Re: Top 10 ? - by Ronaldo_raul™ - 16.07.2011, 19:22
Re: Top 10 ? - by MoroDan - 16.07.2011, 19:59

Forum Jump:


Users browsing this thread: 1 Guest(s)