24.07.2014, 15:04
Hi, I need more information.. for example:
I don't know how to do that
Код:
Your position is 47 with 145 EXP.
pawn Код:
mysql_query("SELECT Name,EXP FROM users ORDER BY EXP DESC LIMIT 10");
mysql_store_result();
new
ID,
output[812];
while(mysql_retrieve_row())
{
ID ++;
new
username[24],
scorevariable[5];
mysql_fetch_field_row(username, "Name");
mysql_fetch_field_row(scorevariable, "EXP");
format(output, sizeof(output), "{9999CC}%s%d. {96CBCB}%s {9999CC}» {C0C0C0}%d {9999CC}EXP\n", output, ID, username, strval(scorevariable));
}
mysql_free_result();
ShowPlayerDialog(playerid, 822, DIALOG_STYLE_MSGBOX, "{A3E4FF}Top 10", output, "OK", "");
![Sad](images/smilies/sad.gif)