TopList +1 REPS! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TopList +1 REPS! (
/showthread.php?tid=508741)
TopList +1 REPS! -
VanSiera - 23.04.2014
can someone give me command /TopList
ex.
Top Players
Top Drivers
Top Onlines
Top Killers
Top Gangsters
Top Richest
Top Headshoots
Top Reactions
Top Drinkers
Top Weakest
Top Minigamers
Top Gangs
Top Workers
All this in Dialog..
Re: TopList +1 REPS! -
RajatPawar - 23.04.2014
Sure - we can give you an example, but what saving system are you using? It's not THAT easy.. Plus, googling the same d.a.m.n. thing would have given you enough SATISFACTORY RESULTS. People need to start installing eyes.
Re: TopList +1 REPS! -
MORJAN1122 - 23.04.2014
You want Mysql plugins to do that
Re: TopList +1 REPS! -
VanSiera - 23.04.2014
Quote:
Originally Posted by MORJAN1122
You want Mysql plugins to do that
|
nO not mysql
Re: TopList +1 REPS! -
ReD_HunTeR - 23.04.2014
do you want Online Top Players?
Re: TopList +1 REPS! -
VanSiera - 23.04.2014
Quote:
Originally Posted by BlackBomb
do you want Online Top Players?
|
No lol
Re: TopList +1 REPS! -
Vince - 23.04.2014
Quote:
Originally Posted by VanSiera
nO not mysql
|
Hardly possible. It
can be done but it isn't at all viable since
it will be slow, tedious and prone to errors. Every time some variable changes you'd have to open a file, read all the values, insert the new value, sort it all and then write it to the file again. And that's assuming that you have a file for each "toplist" you want to show. Otherwise you'd have to open each and every player file (which can be in the thousands) to look for the value. Stupid.
Re: TopList +1 REPS! -
VanSiera - 24.04.2014
bumb
Re: TopList +1 REPS! -
Vince - 24.04.2014
No use bumping. No one will consent to writing something that won't work properly.
Re: TopList +1 REPS! -
arakuta - 24.04.2014
You can use MySQL for this.
Just list for example 10 rows sorted by a column in descending order.