SA-MP Forums Archive
Folder in ini - 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: Folder in ini (/showthread.php?tid=629959)



Folder in ini - AlexPalermitano97 - 06.03.2017

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


Re: Folder in ini - AlexPalermitano97 - 06.03.2017

For example
Scriptfiles / Alex / Alex_Palermitano.ini - Alex.ini / Alex_Weed.ini


Re: Folder in ini - RyderX - 06.03.2017

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?


Re: Folder in ini - AlexPalermitano97 - 06.03.2017

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?


Re: Folder in ini - JaKe Elite - 06.03.2017

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.


Re: Folder in ini - AlexPalermitano97 - 06.03.2017

Me does not recommend doing so?


Re: Folder in ini - JaKe Elite - 06.03.2017

It is not recommended as it makes the reading process of the files slow (on my perspective)


Re: Folder in ini - AlexPalermitano97 - 06.03.2017

OK. Thanks. close this thread