Folder for users?
#1

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

What system are you using for accounts? dini.. something else?
Reply
#3

I am using .ini
Reply
#4

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

dini_Create("users/%s.ini");

This is an dini example, not sure what GF uses.
Reply
#6

gf use include <file>
Reply
#7

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?
Reply
#8

Help would be appreciated
Reply
#9

I think you cant Do folders for your users...

dini_create() Just create a .ini file, not a Folder
Reply
#10

You can create folders, every where that's loading or saving the player's name, set it to something like "Users/%s.ini"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)