[Ajuda] Rank
#1

Queria fazer um rank em dini, exibindo resultados como se fossem em mysql.

Fis um rank mais so consegui para exibir '' ninguem '' quando nao tem ninguem online.

PHP код:
    new    score_Text[300], player_Name[24];
    if(!
response) return true;
    if(
response)
    {
        new    
playerScores[MAX_PLAYERS][rankingEnum],    index;
        
// Pontos(Score)
        
if(listitem == 0)
        {
            for(new 
i!= MAX_PLAYERS; ++i)
            {
                if(
IsPlayerConnected(i) && !IsPlayerNPC(i))
                {
                    
playerScores[index][player_Score] = APlayerData[i][PlayerScore];
                    
playerScores[index++][player_ID] = i;
                }
            }
            
GetPlayerHighestScores(playerScores0index);
            for(new 
i30; ++i)
            {
                if(
index)
                {
                    
GetPlayerName(playerScores[i][player_ID], player_Namesizeof(player_Name));
                    
format(score_Textsizeof(score_Text), "%s{FFFFFF}%dє - {00FF00}%s(%d){FFFFFF} - %d\n"score_Text1player_NameplayerScores[i][player_ID], playerScores[i][player_Score]);
                }
                else
                    
format(score_Textsizeof(score_Text), "%s{FFFFFF}%dє Ninguem\n"score_Text1);
            }
            
ShowPlayerDialog(playeridRANKING2DIALOG_STYLE_MSGBOX"{FFFFFF}Rank - Pontos(Score)"score_Text"Voltar""Fechar");
        }
// Dinheiro 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)