18.08.2015, 07:29
COMMAND:topxp(playerid, params[])
its just showing 1 player..
Код:
{ new p_top[24],score,string[600],row[600]; mysql_query("SELECT playerName, playerXP FROM playerdata ORDER BY playerXP DESC Limit 10"); mysql_store_result(); mysql_fetch_row(row); sscanf(row, "p<|>s[600]d",p_top,score); format(string, sizeof string, "Top Player: %s | XP: %d",p_top,score); mysql_free_result(); ShowPlayerDialog(playerid, 108, DIALOG_STYLE_MSGBOX,"Top Player", string, "Close", ""); return 1; }