Lines...
#1

ok im creating the Leaderboard + Players Kills but there a problem...

PHP Code:
public OnPlayerDeath(playeridkilleridreason)
{
    new
        
playerKills[MAX_PLAYERS][rankingEnum],
        
index
    
;
    for(new 
i!= MAX_PLAYERS; ++i)
    {
        if(
IsPlayerConnected(i) && !IsPlayerNPC(i))
        {
           
playerKills[index][player_Kills] = GetPlayerScore(i);
           
playerKills[index++][player_ID] = i;
        }
    }
    
GetPlayerHighestKills(playerKills,0index);
    
    new
       
kills_Text[256] = "\n",
       
player_Name[20]
    ;
    for(new 
ii5; ++i)
    {
        if(
index)
        {
          
GetPlayerName(playerKills[i][player_ID], player_Namesizeof(player_Name));
          
format(kills_Textsizeof(kills_Text), "%s\n\n%d. %s - %d"kills_Text1player_NameplayerKills[i][player_Kills]);
        }
        else
          
format(kills_Textsizeof(kills_Text), "%s\n%d. N/A"kills_Texti1);
    }
    
TextDrawSetString(Textdraw19kills_Text);
    
TextDrawShowForPlayer(playeridTextdraw19);
    
TextDrawShowForPlayer(playeridTextdraw20);
    
TextDrawShowForPlayer(playeridTextdraw21);
    
TextDrawShowForPlayer(playeridTextdraw22);
    
TextDrawShowForPlayer(playeridTextdraw23);
    return 
1;

So its worked but after i killing someone its be 1. My Name worked + Kills but see
http://imgur.com/edit?deletehash=Yu2...album_id=nhpvd

I Want after someone killing a player at 2. player[2] - Kills understand me?
Reply
#2

I didn't understand what are you trying to say.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)