How to create a new folder for every player?
#1

Hello

I was wondering, if it is possible to not only create files for players (where you save their stats) but also folders
So you get something likes this:
"Scriptfiles/Players/%s/Stats.ini" (%s obviously being the playername)?
Is this possible? Or can I only write files and must I make the folders manually?

Thanks in advance
Reply
#2

You mean like store ALL players data in only 1 single file? thats not reccomended and i dont even know if that is possible ._.

as far as i know you can only make a one map called "Users" and in there you get all the player files.
you must create Users your self yes.
Reply
#3

This was asked before, I.e. If there was two players, one named Steve and one names John, it'd do something like this:

Quote:

scriptfiles/accounts/John/stats.ini/
scriptfiles/accounts/Steve/stats.ini/

As far as I'm aware of, it ain't possible.
Reply
#4

I mean that when a player registers, you create a file for that player, but could you also create a folder for the player?
So if you have 5 registered players you have 5 folders in which you can find the .ini files

EDIT:Ok, thanks Dan, I'll use tags from Y_INI then
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)