MySQL Top Killer
#1

Hello I have a question how can i make a command to list the best killers of the server? with /topkiller
I have a MySQL system and must load from the database accounts -> Kills
Reply
#2

Код:
SELECT * FROM Users ORDER BY Kills DESC LIMIT 0,10
will load the 10 best players.
Reply
#3

thanks, and how can i show this in a Dialog?
Reply
#4

just retrieving the rows and concatenating the players info into an string, then show the dialog with this string to the player.

PS: If are you expecting me to do it, give up and wait for other person respond your topic.
Reply
#5

Hate how people don't think.
Write it down step by step:


  1. Create String.
  2. Get Info
  3. Create Dialog
  4. format the string with the info,
  5. Show the string in dialog....
Basic scripting
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)