Burgershot
Home
Members
Team
Help
Search
Register
Login
Home
Members
Help
Search
Burgershot
SA-MP
Pawn Scripting
[Pawn]
How does one make a top5 ranking?
0 Vote(s) - 0 Average
Pawn How does one make a top5 ranking?
Z3fRaN
Offline
Burgershot Member
Posts:
9
Threads:
5
Joined:
Feb 2021
Reputation:
0
Location:
Egypt
#1
2021-04-26, 11:04 PM
I don't have the idea of how to make a top 5 ranking, like top 5 killers of the server, what do I need to do in order to script something like that?
Snow
Offline
Burgershot Member
Posts:
48
Threads:
5
Joined:
Oct 2020
Reputation:
2
Location:
Pakistan
#2
2021-04-27, 07:18 AM
(This post was last modified: 2021-04-27, 07:18 AM by
Snow
.)
If you're using sql, You can use SELECT and ORDER BY clauses to fetch the results from database. For example,
Code:
SELECT username, kills FROM `users` ORDER BY kills DESC LIMIT 5
Awide
Offline
Burgershot Member
Posts:
62
Threads:
5
Joined:
Sep 2019
Reputation:
5
#3
2021-04-27, 03:57 PM
I recommend you to save into a database, so you can find anytime what you're seeking just how Snow explained.
Desolation Roleplay has closed. You can download the gamemode here: https://www.burgershot.gg/showthread.php?tid=2272
«
Next Oldest
|
Next Newest
»
View a Printable Version
Subscribe to this thread
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- Chat
-- Tech
-- Life
-- Art
-- Programming
open.mp
-- Development Updates
-- Questions and Suggestions
SA-MP
-- General Discussions
-- Videos and Screenshots
-- Support
-- Pawn Scripting
-- Tutorials
-- Releases
---- Plugins
---- Libraries
---- Filterscripts
---- Gamemodes
---- Maps
-- Advertisements
Other languages
-- Spanish/Español
---- Programación
---- Discusión GTA SA Multijugador
---- Mods
---- Offtopic
---- Juegos
-- Portuguese/Português
-- Russian/Русский
-- Italian/Italiano
-- Dutch/Nederlands
-- German/Deutsch
-- Romanian/Română
-- Ex-Yu
-- Polish/Polski
---- Ogólne
---- Serwery
---- Skryptowanie
---- Filmiki i zdjęcia
-- Lithuanian/Lietuviškas
-- French/Français
-- Hungarian/Magyar
-- Hindi/Urdu
-- Turkish
-- Other
Linear Mode
Threaded Mode