Don't show name.
#7

What bad now?

Код:
stock TOP10(playerid)
{
	new String[ 200 ],savingstring[ 100 ];
	mysql_query("SELECT Kills,Deaths FROM players ORDER BY Kills DESC LIMIT 10");
	mysql_store_result();
	new AllPlayers;
	strcat(String,"TOP10 kills\n\n");
	while(mysql_retrieve_row())
	{
		AllPlayers++;
		new UserName[24],UserKills;
		mysql_fetch_row(savingstring);
		sscanf(savingstring, "p<|>s[24]i", UserName, UserKills);
		format(String, sizeof(String), "%s%d. %s %d kills\n", String, AllPlayers, UserName, UserKills);
	}
mysql_free_result();
ShowPlayerDialog( playerid, 8, DIALOG_STYLE_MSGBOX, "TOP 10", String, "OK", "" );
return 1;
}
Reply


Messages In This Thread
Don't show name. - by budelis - 15.06.2012, 08:05
Re: Don't show name. - by tiernantheman - 15.06.2012, 08:16
Re: Don't show name. - by budelis - 15.06.2012, 08:22
Re: Don't show name. - by Littlehelper - 15.06.2012, 08:52
Re: Don't show name. - by PrawkC - 15.06.2012, 09:20
Re: Don't show name. - by Vince - 15.06.2012, 09:21
Re: Don't show name. - by budelis - 16.06.2012, 13:46
Re: Don't show name. - by budelis - 16.06.2012, 17:11
Re: Don't show name. - by budelis - 17.06.2012, 08:55
Re: Don't show name. - by budelis - 17.06.2012, 15:53

Forum Jump:


Users browsing this thread: 8 Guest(s)