Reading files for offline players
#1

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)
Reply
#2

Unless you plan on using MySQL, you have to store every members' name in a text file and use fread accordingly.
Reply
#3

Would doing that still give the ability to hire, fire, promote, demote, etc. when the other play is offline?
Reply
#4

Yes, it's that complicated even if you're using dini. But storing the names in a file is just for the /members command.
Reply
#5

Sure thing, thank you for your assistance, Vincent.
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)