help top10
#3

Код:
mysql_query("SELECT Name,Exp FROM playerdata ORDER BY Exp DESC LIMIT 10");
mysql_store_result();
new ID,output[ 512 ],tmpStr[64];
while(mysql_retrieve_row())
{
ID ++;
new username[24], scorevariable[5];
mysql_fetch_field_row(username, "Name");
mysql_fetch_field_row(scorevariable, "Exp");
format(tmpStr, sizeof(tmpStr), "%d. %s %d XP\n", ID,username,strval(scorevariable));
strcat( output, tmpStr );
}
mysql_free_result();
ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "players top10", output, "OK", "");
Reply


Messages In This Thread
help top10 - by budelis - 23.09.2011, 13:27
Re: help top10 - by MP2 - 23.09.2011, 13:29
Re: help top10 - by budelis - 23.09.2011, 15:22
Re: help top10 - by MP2 - 23.09.2011, 15:34
Re: help top10 - by budelis - 23.09.2011, 17:11
Re: help top10 - by Richie - 23.09.2011, 17:36
Re: help top10 - by [L3th4l] - 23.09.2011, 17:50
Re: help top10 - by budelis - 24.09.2011, 07:37
Re: help top10 - by wups - 24.09.2011, 08:35
Re: help top10 - by budelis - 24.09.2011, 10:22

Forum Jump:


Users browsing this thread: 2 Guest(s)