SA-MP Forums Archive
FileManager.inc or similliar? - 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: FileManager.inc or similliar? (/showthread.php?tid=607504)



FileManager.inc or similliar? - Luicy. - 20.05.2016

Do anyone have mirror for https://sampforum.blast.hk/showthread.php?tid=92246 or something similliar?
I need to create a folder for each user.


Re: FileManager.inc or similliar? - Konstantinos - 20.05.2016

http://www.jatochnietdan.com/project/sa-mp/filemanager

YSF plugin has got similar functions too for directories.


Re: FileManager.inc or similliar? - Luicy. - 20.05.2016

Thanks alot!, been looking for it.

-Repped.


Re: FileManager.inc or similliar? - Luicy. - 20.05.2016

Edit: I got this "problem", dir_create doesn't create the folder.
dir_create(playername(playerid));


Re: FileManager.inc or similliar? - Konstantinos - 20.05.2016

If you do it like that, it will create the directory in the main folder where samp-server (samp03svr) is located and not in scriptfiles.


Re: FileManager.inc or similliar? - Luicy. - 20.05.2016

Quote:
Originally Posted by Konstantinos
View Post
If you do it like that, it will create the directory in the main folder where samp-server (samp03svr) is located and not in scriptfiles.
Then how?


Re: FileManager.inc or similliar? - Konstantinos - 20.05.2016

pawn Code:
new
    dir_n[MAX_PLAYER_NAME + 13] = "scriptfiles\\";
       
strcat(dir_n, playername(playerid));
dir_create(dir_n);



Re: FileManager.inc or similliar? - Luicy. - 20.05.2016

Yay, Thank you.