Help Please in Top 5 system.
#1

I got a serious problem. When player joins, its alright. it shows the top list like this ↓

Код:
1. Champ
2. Stranger
3. N/A
4. N/A
5. N/A
but when i kill some one. it shows it like this.

Код:
1. Champ
2. Champ
3. N/A
4. N/A
5. N/A
I have created a variable for it. Here is it.

pawn Код:
new score[MAX_PLAYERS];

public OnPlayerDeath(playerid)
(
  score[killerid]++;
)
and

pawn Код:
for(new i; i != MAX_PLAYERS; ++i)
    {
        if(IsPlayerConnected(i) && !IsPlayerNPC(i))
        {
            playerScores[index][player_Score] = score[i];
            playerScores[index++][player_ID] = i;
        }
    }
Please help.
Reply


Messages In This Thread
Help Please in Top 5 system. - by Champ - 26.09.2013, 17:21
Re: Help Please in Top 5 system. - by Patrick - 26.09.2013, 18:33
Re: Help Please in Top 5 system. - by Konstantinos - 26.09.2013, 19:00
Re: Help Please in Top 5 system. - by Champ - 27.09.2013, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)