[Ajuda] problema na dialog
#1

essa dialog so esta pegando meu nome nao pega de quem tem o level ou kill ou dinheiro ou maior level de procurado
sу pega o meu alguem ajuda ae

PHP код:
     if(dialogid == 9999)
{
    if(
response//Ao Clickar no primeiro botгo
    
{
            if(
listitem == 0//Kills
{
    new 
string[128], name[24];
    for ( new 
0MAX_PLAYERSi++ )
       {
        if(
topKill Player[i][pMatou]) {
            
topKill Player[i][pMatou];
            
GetPlayerName(playeridnamesizeof(name));
            
format(stringsizeof(string), " {00FF00}%s{FF5A00} | Kills: %i",nametopKill);
        }
    }
    
ShowPlayerDialog(playeridD_RankDIALOG_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 
0MAX_PLAYERSi++ )
                
GetPlayerName(playeridname24);
                
format(stringsizeof(string), " {00FF00}%s{FF5A00} | score: %i",nameGetPlayerScore(playerid));
                
strcat(infostring);
                
ShowPlayerDialog(playeridD_Rank+1DIALOG_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 
0MAX_PLAYERSi++ )
                
GetPlayerName(playeridname24);
                
format(stringsizeof(string), " {00FF00}%s{FF5A00} | Dinheiro: %i",nameGetPlayerMoney(playerid));
                
strcat(infostring);
                
ShowPlayerDialog(playeridD_Rank+2DIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Rei dos Scores ",info,"ok","Voltar");
                return 
1;
            }
            if(
listitem == 3//Mais Procurado
            
{
                new 
string[128], info[2048], name[24];
                for ( new 
0MAX_PLAYERSi++ )
                
GetPlayerName(playeridname24);
                
format(stringsizeof(string), " {00FF00}%s{FF5A00} | Nivel de procurado: %i",nameGetPlayerWantedLevel(playerid));
                
strcat(infostring);
                
ShowPlayerDialog(playeridD_Rank+3DIALOG_STYLE_MSGBOX,"{ff0000}» {ffffff} Rei dos Scores ",info,"ok","Voltar");
                return 
1;
              }
        }
    } 
Reply


Messages In This Thread
problema na dialog - by didimk157 - 08.12.2016, 11:46
Re: problema na dialog - by didimk157 - 08.12.2016, 16:56
Re: problema na dialog - by AuhMaru - 08.12.2016, 18:36
Re: problema na dialog - by didimk157 - 08.12.2016, 19:38
Re: problema na dialog - by didimk157 - 09.12.2016, 12:19

Forum Jump:


Users browsing this thread: 1 Guest(s)