Reading files for offline players - 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: Reading files for offline players (
/showthread.php?tid=379172)
Reading files for offline players -
nmader - 20.09.2012
Essentially I would like to know where to begin when making a /members command for a faction. This command will generate a full list via dialog of the players, however I am clueless of how I should go about doing such. (Using Dini At the moment)
Re: Reading files for offline players -
ReneG - 20.09.2012
Unless you plan on using MySQL, you have to store every members' name in a text file and use fread accordingly.
Re: Reading files for offline players -
nmader - 20.09.2012
Would doing that still give the ability to hire, fire, promote, demote, etc. when the other play is offline?
Re: Reading files for offline players -
ReneG - 20.09.2012
Yes, it's that complicated even if you're using dini. But storing the names in a file is just for the /members command.
Re: Reading files for offline players -
nmader - 20.09.2012
Sure thing, thank you for your assistance, Vincent.
Re: Reading files for offline players -
Mauzen - 20.09.2012
With mysql you can do all that with a single query. With files it would be the best to create a faction ini that contains all the infos like members and their rank.