top Score and Kill same dialog
#6

Quote:
Originally Posted by Sands
Посмотреть сообщение
pawn Код:
CMD:top(playerid, params[])
{
    mysql_query("SELECT `Score`, `Playername` FROM `#MYSQL_TABLE` ORDER BY `Score` DESC LIMIT 10");
    mysql_store_result();

    new
        ID,
        output[800];

    while(mysql_retrieve_row())
    {
        ID ++;

        new
            Name[24],
            scorevariable[80];

        mysql_fetch_field_row(Name, "Name");
        mysql_fetch_field_row(scorevariable, "pScore");

        format(output, sizeof(output), "%s%d. %s %d Score\n", output, ID, Name, strval(scorevariable));
    }
    mysql_free_result();

    ShowPlayerDialog(playerid, DIALOG_TOP, DIALOG_STYLE_MSGBOX, "Top 10 Players", output, "OK", "");
    return 1;
}
Thanks for the reply but exactly what is this for? I already have this top score if you READ my first post. I just want to add another board for Top Kills Player in the same dialog.

and
Код:
mysql_query
will not work. Coz i'm using R7.
Reply


Messages In This Thread
top Score and Kill same dialog - by kbalor - 13.11.2013, 10:49
Re: top Score and Kill same dialog - by kbalor - 13.11.2013, 13:35
Re: top Score and Kill same dialog - by coool - 13.11.2013, 14:18
Re: top Score and Kill same dialog - by kbalor - 14.11.2013, 11:00
Re: top Score and Kill same dialog - by Sands - 14.11.2013, 11:22
Re: top Score and Kill same dialog - by kbalor - 14.11.2013, 11:31
Re: top Score and Kill same dialog - by Sands - 14.11.2013, 11:39
Re: top Score and Kill same dialog - by kbalor - 14.11.2013, 11:47
Re: top Score and Kill same dialog - by -Prodigy- - 14.11.2013, 13:51
Re: top Score and Kill same dialog - by kbalor - 14.11.2013, 17:38

Forum Jump:


Users browsing this thread: 1 Guest(s)