- 0
Cum se face un 'top'?
-
Similar Content
-
- 28 replies
- 6.749 views
-
-
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 NERS2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now