Login
Register
Login
Remember me
Lost Password?
Discord
Github
Google
Portal
Forums
Search
Member List
Calendar
Help
View New Posts
View Today's Posts
open.mp forum
›
SA-MP
›
Pawn Scripting
« Previous
1
…
10
11
12
13
14
…
32
Next »
›
[Pawn]
How does one make a top5 ranking?
0 Vote(s) - 0 Average
1
2
3
4
5
[Pawn]
How does one make a top5 ranking?
Z3fRaN
Burgershot Member
Joined: Feb 2021
Posts: 9
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?
Reply
Snow
Burgershot Member
Joined: Oct 2020
Posts: 48
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
Website
Reply
Awide
Burgershot Member
Joined: Sep 2019
Posts: 60
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.
Check out Desolation Roleplay, where zombie AI and scavenging is bothered by player bandits!
https://desolationlabs.com/viewforum.php?f=5
Website
Reply
View a Printable Version
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?na
-- Ex-Yu
-- Polish/Polski
---- Og?lne
---- Serwery
---- Skryptowanie
---- Filmiki i zdjecia
-- Lithuanian/Lietuvi?kas
-- French/Fran?ais
-- Hungarian/Magyar
-- Turkish
-- Hindi/Urdu
-- Other
Linear Mode
Threaded Mode