- 0
Cum se face un 'top'?
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
NERS
Nu stiu cum sa explic asta foarte bine, dar cum pot sa fac de exemplu o comanda /top care iti arata top 10 jucatori cu cele mai multe ucideri?
Adica, sa zicem ca avem urmatorii jucatori:
Player1 (id 0) - 500 kills
Player2 (id 1) - 3 kills
Player3 (id 2) - 43 kills
Cu foreach(new i : Player) va arata fiecare jucator dupa ID, dar cum pot sa arat in functie de ucideri? adica asa:
Player1 (id 0) - 500 kills
Player3 (id 2) - 43 kills
Player2 (id 1) - 3 kills
stiu ca este posibil cu baza de date folosind "SELECT `Name` FROM `users` ORDER BY `Kills` DESC LIMIT 10" (sau ceva asemanator nu mai stiu sigur), dar este cumva posibil fara mysql?
Edited by NERSLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.