[Ajuda] Como coletar nome de mais de 1 player
#1

so esta pegando nome de um player quero q pegue pelomenos 10 se poderem me ajudar

PHP код:
     if(dialogid == 9999)
{
    if(
response) //Ao Clickar no primeiro botгo
    
{
            if(
listitem == 0) //Kills
{
    new 
string[128], name[24];
    for(new 
i; i < MAX_PLAYERS; i++)
    {
        if(
topKill < Player[i][pMatou]) {
            
topKill = Player[i][pMatou];
            
GetPlayerName(playerid, name, sizeof(name));
            
format(string, sizeof(string), " {00FF00}%s{FF5A00} | Kills: %i",name, topKill);
        }
    }
    
ShowPlayerDialog(playerid, D_Rank, DIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Rei dos Kills ",string,"ok","Voltar");
    return 
1;
}
            if(
listitem == 1) // Score
            
{
                new 
string[128], info[2048], name[24];
                for(new 
i; i < MAX_PLAYERS; i++)
                
GetPlayerName(playerid, name, 24);
                
format(string, sizeof(string), " {00FF00}%s{FF5A00} | score: %i",name, GetPlayerScore(playerid));
                
strcat(info, string);
                
ShowPlayerDialog(playerid, D_Rank, DIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Rei dos Scores ",info,"ok","Voltar");
                return 
1;
            }
            if(
listitem == 2) //Money
            
{
                new 
string[128], info[2048], name[24];
                for(new 
i; i < MAX_PLAYERS; i++)
                
GetPlayerName(playerid, name, 24);
                
format(string, sizeof(string), " {00FF00}%s{FF5A00} | Dinheiro: %i",name, GetPlayerMoney(playerid));
                
strcat(info, string);
                
ShowPlayerDialog(playerid, D_Rank, DIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Rei das Notas de 100 ",info,"ok","Voltar");
                return 
1;
            }
            if(
listitem == 3) //Mais Procurado
            
{
                new 
string[128], info[2048], name[24];
                for(new 
i; i < MAX_PLAYERS; i++)
                
GetPlayerName(playerid, name, 24);
                
format(string, sizeof(string), " {00FF00}%s{FF5A00} | Nivel de procurado: %i",name, GetPlayerWantedLevel(playerid));
                
strcat(info, string);
                
ShowPlayerDialog(playerid, D_Rank, DIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Maiores Fugitivos ",info,"ok","Voltar");
                return 
1;
            }
        }
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)