15.06.2012, 08:05
Hello all. I have problem here:
All is well, but don't show player name:
ex:
Код:
stock TOP10(playerid) { new String[ 200 ],savingstring[ 60 ]; mysql_query("SELECT Name,Kills FROM players ORDER BY Kills DESC LIMIT 10"); mysql_store_result(); new AllPlayers; strcat(String,"Players TOP10 kills\n\n"); while(mysql_retrieve_row()) { AllPlayers++; new UserName[24],UserKills[11]; sscanf(savingstring,"p<|>s[24]d",UserName,UserKills); format(String, sizeof(String), "%s%d. %s %d kills\n", String, AllPlayers, UserName, strval(UserKills)); } mysql_free_result(); ShowPlayerDialog( playerid, 21, DIALOG_STYLE_MSGBOX, "TOP 10", String, "OK", "" ); return 1; }
ex:
Код:
1. 1 kills