/Top? MySQL or Y_INi? - 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: /Top? MySQL or Y_INi? (
/showthread.php?tid=599001)
/Top? MySQL or Y_INi? -
K0P - 19.01.2016
Will i be able to make /top command using y_ini? i mean that the script will scan the database/files for top 10 highest scores.If it enables to do that please tell me how
Re: /Top? MySQL or Y_INi? -
TwinkiDaBoss - 19.01.2016
Yes you will be able, but its going to be a bit harder.
You can simply have a timer running that will check top 5 players online and save it, then later the timer will check if current top is lower/higher than the new one etc.
But I stongly suggest SQL, it can be done with few lines.
Re: /Top? MySQL or Y_INi? -
Logic_ - 19.01.2016
you can get the score from the save files and you can make a /top10 command using Y_ini or even a temporary ban system using Y_ini and some includes.
Re: /Top? MySQL or Y_INi? -
K0P - 19.01.2016
Thanks You Both,solved a big problem

But timers make the server lag so if there is another meathod possible?
Re: /Top? MySQL or Y_INi? -
K0P - 19.01.2016
Quote:
Originally Posted by ALiScripter
you can get the score from the save files and you can make a /top10 command using Y_ini or even a temporary ban system using Y_ini and some includes.
|
Wait a min bro,you said "you can get the score from the save files"
can you tell me how it is possible? Please
Re: /Top? MySQL or Y_INi? -
TwinkiDaBoss - 19.01.2016
Read this
https://sampforum.blast.hk/showthread.php?tid=471358