Jump to content

Someone know how to do a painel for top 10 killers


iuskow

Recommended Posts

Posted

i want something like a top 10 players with more kills number , a painel when i click for exemple "F7" open a top10 players

someone know how can i do that? please

  • 2 weeks later...
Posted
i want something like a top 10 players with more kills number , a painel when i click for exemple "F7" open a top10 players

someone know how can i do that? please

You can do that by using mySQL and some gui

Posted

dbQuery(db, "SELECT `kills`,`playername` FROM `stats` ORDER BY `kills` DESC LIMIT 10")

I would recommend using a callback there instead of a singular query. Then just send it to the client, who should have triggered a serverside event with the above query in it (also means you will be using 'client'). From there, just loop through the resulting table and create gridlist rows containing the data.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...