Folder for users? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Folder for users? (
/showthread.php?tid=73687)
Folder for users? -
Aoi_Rikuto - 17.04.2009
I use a GF edit. How do I make it that when users register it goes into a folder called "users"? So If I would register under tester it would go into /server/scriptfiles/users/tester.ini? Any help appreciated
Re: Folder for users? -
StrickenKid - 17.04.2009
What system are you using for accounts? dini.. something else?
Re: Folder for users? -
Aoi_Rikuto - 17.04.2009
I am using .ini
Re: Folder for users? -
Joe Staff - 17.04.2009
If it's GF then it's not a file system. You have to change all of the save AND load locations to "foldername/%s.ini" or whatever.
Re: Folder for users? -
hanzen - 17.04.2009
dini_Create("users/%s.ini");
This is an dini example, not sure what GF uses.
Re: Folder for users? -
Danut - 17.04.2009
gf use include <file>
Re: Folder for users? -
Aoi_Rikuto - 17.04.2009
Quote:
Originally Posted by MoroJrâ„¢
gf use include <file>
|
What? I don't understand?
I found in /register and it has %s.ini, which I assume it is the name of the folder.
Do I just change that to /users/%s.ini?
How would I load it?
Re: Folder for users? -
Aoi_Rikuto - 18.04.2009
Help would be appreciated
Re: Folder for users? -
deathghost - 18.04.2009
I think you cant Do folders for your users...
dini_create() Just create a .ini file, not a Folder
Re: Folder for users? -
Joe Staff - 18.04.2009
You can create folders, every where that's loading or saving the player's name, set it to something like "Users/%s.ini"