26.09.2013, 17:21
I got a serious problem. When player joins, its alright. it shows the top list like this ↓
but when i kill some one. it shows it like this.
I have created a variable for it. Here is it.
and
Please help.
Код:
1. Champ 2. Stranger 3. N/A 4. N/A 5. N/A
Код:
1. Champ 2. Champ 3. N/A 4. N/A 5. N/A
pawn Код:
new score[MAX_PLAYERS];
public OnPlayerDeath(playerid)
(
score[killerid]++;
)
pawn Код:
for(new i; i != MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i) && !IsPlayerNPC(i))
{
playerScores[index][player_Score] = score[i];
playerScores[index++][player_ID] = i;
}
}