[Ajuda] Dialog
#1

A dialog a seguir sу mostra o Primeiro jogador do Rank, eu sei que o cуdigo estб errado, mas nгo sei como concerta-lo, nгo sei como que devo fazer neste Loop:

pawn Код:
stock TopPlayersOnline(playerid)
{
    while(Percorrido < 10) {
        for(new i; i < 500; i++)  if(IsPlayerConnected(i)) {
            if(GetPlayerScore(i) > Valor_Maximo[Percorrido] && TopFoi[i] == false) {
                GetPlayerName(i,PlayerMelhor[Percorrido],24);
                Valor_Maximo[Percorrido] = GetPlayerScore(i);
                TopFoi[i] = true;
            }
        }
        Percorrido++;
    }
    for(new a; a < 500; a++)  if(IsPlayerConnected(a)) TopFoi[a] = false;
    Percorrido = 0;
    for(new i; i < 10;i++) {
        if(PlayerMelhor[i][0] != EOS) {
            format(string_format,128,"{FF00FF}[ %d ] {FFFFFF}- {00FF00}%s  {FFFFFF}|  {FF0000}Score: %d",i+1,PlayerMelhor[i],Valor_Maximo[i]);
            //SendClientMessage(playerid,0xC9170EFF,string_format);
            ShowPlayerDialog(playerid, DIALOG_Rank, DIALOG_STYLE_MSGBOX, "{FF0000}Rank Dos Jogadores {00FF00}Online", string_format, "Fechar", "");
            Valor_Maximo[i] = -1;
        }
    }
}
Reply
#2

Reply
#3

Quote:
Originally Posted by TreePuncher
Посмотреть сообщение
Se sua intenзгo for ganhar mais um post. Muito bom, pois nгo ajudou em nada!
Reply
#4

Quote:
Originally Posted by Gleisson_.
Посмотреть сообщение
Se sua intenзгo for ganhar mais um post. Muito bom, pois nгo ajudou em nada!
Ajudar nгo era minha intenзгo mesmo.
Reply
#5

Quote:
Originally Posted by TreePuncher
Посмотреть сообщение
Ajudar nгo era minha intenзгo mesmo.
Hum, bom, minha intenзгo foi te reportar entгo!

Quote:

Nгo й permitido SPAM. Informaзхes inъteis e/ou conteъdo sem relaзгo ao pedido.

Reply
#6

Nгo cheguei a olhar o cуdigo envolvendo a parte do Rank, mas deve-se usar strcat.

Ex:

pawn Код:
CMD:admins(playerid){
    static i, Nome[MAX_PLAYER_NAME], cStr[40], Aux[128];
    for(i = GetMaxPlayers() - 1; i != -1; --i){
        if (IsPlayerConnectd(i) && IsPlayerAdmin(i)) {
            GetPlayerName(i, Nome, MAX_PLAYER_NAME);
            format(cStr, sizeof cStr, "Administrador: %s", Nome);
            strcat(Aux, cStr);
        }
    }
    ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "Admins", Aux, "Fechar", "");
    return true;
}
Reply
#7

Quote:
Originally Posted by Gleisson_.
Посмотреть сообщение
Hum, bom, minha intenзгo foi te reportar entгo!
Estou chocado, mesmo :O

Quote:

PESQUISAR antes de perguntar

Reply
#8

Quote:
Originally Posted by iCasTiel
Посмотреть сообщение
Nгo cheguei a olhar o cуdigo envolvendo a parte do Rank, mas deve-se usar strcat.

Ex:

pawn Код:
CMD:admins(playerid){
    static i, Nome[MAX_PLAYER_NAME], cStr[40], Aux[128];
    for(i = GetMaxPlayers() - 1; i != -1; --i){
        if (IsPlayerConnectd(i) && IsPlayerAdmin(i)) {
            GetPlayerName(i, Nome, MAX_PLAYER_NAME);
            format(cStr, sizeof cStr, "Administrador: %s", Nome);
            strcat(Aux, cStr);
        }
    }
    ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "Admins", Aux, "Fechar", "");
    return true;
}
Puts, nem pensei nisso, valeu ae brow, vo tentar dar +REP, ver se consigo kkkkkk...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)