08.12.2016, 20:44
PHP код:
forward highscores(playerid);
public highscores(playerid)
{
new query[512],results[400],title[64];
format(title,sizeof(title),"{00FF00}Highscores");
format(query,sizeof(query),"SELECT * FROM `users` ORDER BY `totalscore` DESC LIMIT 10 ");
mysql_query(query);
mysql_store_result();
new tRows = mysql_num_rows();
new username,totalscore;
while(mysql_fetch_row(query))
{
sscanf(query, "p<|>d",PInfo[playerid][TotalScore]);
format(results,sizeof(results),"%d(%s)\n");
}
ShowPlayerDialog(playerid, 9863, DIALOG_STYLE_LIST,title,results,"Select", "Back");
mysql_free_result();
return 1;
}
unfortunately it doesnot work at all
whats wrong in it ?