Posts: 151
Threads: 38
Joined: Jan 2016
Reputation:
0
hello I would like to know how do you create a folder and inside it put one or more file where the folder is named after you put on Samp and inside 3 INI files with the name of PG.
Thanks
Posts: 151
Threads: 38
Joined: Jan 2016
Reputation:
0
For example
Scriptfiles / Alex / Alex_Palermitano.ini - Alex.ini / Alex_Weed.ini
Posts: 570
Threads: 55
Joined: Oct 2016
PHP код:
#define YOURPATH "Users/%s.ini"
And create in scriptfiles folder named Users to see .ini with player name files when playe regisrer.
Isn't that what u meant to ask for?
Posts: 151
Threads: 38
Joined: Jan 2016
Reputation:
0
yes but how do I create a folder directly when the player is automatically registered and inside put the ini file?
#debolt PATH Users/%s/%s. Ini?
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
Why would you want to create a folder per user? Isn't that just wasting spaces? You may use FileManager for that but If I were you I wouldn't be doing that instead I'd create the .ini right away.
Posts: 151
Threads: 38
Joined: Jan 2016
Reputation:
0
Me does not recommend doing so?
Posts: 3,715
Threads: 358
Joined: Apr 2012
Reputation:
0
It is not recommended as it makes the reading process of the files slow (on my perspective)
Posts: 151
Threads: 38
Joined: Jan 2016
Reputation:
0
OK. Thanks. close this thread