[Ajuda] Bug Ranking
#2

Eu acho que tem como fazer dessa forma

Код:
TopPlayersOnline(playerid)
{
    new Valor_Maximo, string[256], count = 0, Nome[MAX_PLAYER_NAME];
    foreach(new i: Player)
    {
        if(GetPlayerScore(playerid) > Valor_Maximo)
            Valor_Maximo = GetPlayerScore(playerid);
    }
    format(string, sizeof string, "{FFFFFF}Posiзгo\t{FFFFFF}Nick\t{FFFFFF}Score");
    Novamente:
    foreach(new i: Player)
    {
        if(GetPlayerScore(playerid) == Valor_Maximo)
        {
            GetPlayerName(playerid, Nome, sizeof Nome);
            format(string, sizeof string, "%s\n%d\t%s\t%s", string, count, Nome, Valor_Maximo);
            count++;
        }
    }
    if(Valor_Maximo > 0)
    {
        Valor_Maximo--;
        goto Novamente;
    }
    return ShowPlayerDialog(playerid, Dialog_Top1, DIALOG_STYLE_TABLIST_HEADERS, "{FFFFFF}Top 10 Score", string, "{FFFFFF}Fechar", "");
}
OBS: Nгo testei.
Reply


Messages In This Thread
Bug Ranking - by MatheusFirmino - 16.12.2017, 14:28
Re: Bug Ranking - by Paulthaz - 16.12.2017, 17:08
Re: Bug Ranking - by MatheusFirmino - 16.12.2017, 20:13
Re: Bug Ranking - by Paulthaz - 16.12.2017, 22:10

Forum Jump:


Users browsing this thread: 2 Guest(s)