SA-MP Forums Archive
one short question - 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: one short question (/showthread.php?tid=664114)



one short question - Deken - 19.02.2019

what you think did it worth to make a specific scriptfiles folder which name will be staff team and there create list of admins on sort of ids of slot?


Re: one short question - TokicMajstor - 19.02.2019

Its not needed if you have saving players in your scriptfiles


Re: one short question - ComDuck - 19.02.2019

What is the purpose of this? How are you storing your user data?


Re: one short question - Calisthenics - 19.02.2019

Quote:
Originally Posted by TokicMajstor
View Post
Its not needed if you have saving players in your scriptfiles
How is it not needed? If the server contains 50k registered players, would you open 50k files (with a FileManager plugin obviously) just to read their admin level? SQL would only need a simple query but when saving player data with file functions, reading from less files is the way.

Even better, have a file for each level. You can avoid sorting if you read in correct order.


Re: one short question - Deken - 19.02.2019

Now its harder way to make it thank you
You know how to put an value like slot1 in the admininfo enum