How to create a new folder for every player? - 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: How to create a new folder for every player? (
/showthread.php?tid=466543)
How to create a new folder for every player? -
knackworst - 28.09.2013
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
Re: How to create a new folder for every player? -
Voxel - 28.09.2013
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.
Re: How to create a new folder for every player? -
DanishHaq - 28.09.2013
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.
Re: How to create a new folder for every player? -
knackworst - 28.09.2013
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