Creating Directories -
RonLipel_ - 14.11.2009
Hello,
I just have to create an directory in my script.
I have tried RLib plugin:
http://forum.sa-mp.com/index.php?topic=22084.0
But when I used the "MakeDirectory" function like this:
MakeDirectory("Profiles");
My script got stuck, it didn't created the directory and I could not connect the server.
Please help me,
Thanks.
Oh, and yes, I have put the rlib.dll in "plugins" directory in my server directory, and the include in pawno/include directory..
Re: Creating Directories -
Sergei - 14.11.2009
Why don't you ask in plugin's topic?
Re: Creating Directories -
RonLipel_ - 14.11.2009
I am not asking about this plugin... I'm asking about creating directories. If you have another way to create directories, it will be great.
Re: Creating Directories -
RonLipel_ - 14.11.2009
Quote:
Originally Posted by Y_Leѕѕ
Try the YSF directory functions.
|
No 0.3 version ?
Re: Creating Directories -
RonLipel_ - 14.11.2009
Quote:
Originally Posted by Y_Leѕѕ
Err, no, but the directory functions should work if you can extract them.
|
Can I use the whole plugin but in fact I will use just the directories functions ? =\
Re: Creating Directories -
Sergei - 14.11.2009
Quote:
Originally Posted by RonLipel_
Quote:
Originally Posted by Y_Leѕѕ
Err, no, but the directory functions should work if you can extract them.
|
Can I use the whole plugin but in fact I will use just the directories functions ? =\
|
Why not? I'm sure you don't use all SA:MP functions and you still use SA:MP.
Re: Creating Directories -
RonLipel_ - 15.11.2009
=\\
What would I do ?
Re: Creating Directories -
RoBo - 15.11.2009
system("mkdir /path/to/directory");
... would only work on Linux, but you could probably use something like ::CreateDirectory on Windows.
Re: Creating Directories -
Patrik356b - 22.11.2009
If I remember correct you can get pawn to execute "shell" commands on windows, haven't tried throu
Re: Creating Directories -
Rac3r - 08.12.2009
It's a shame YSF hasn't been updated for 0.3, I'm sure some scripts were based around the function YSF offered. Our server was.
Luckily though, a guy helping me develop AdrenalineX created a plugin that could create folders.
Код:
native Array:scandir(const path[], const pattern[], bool:ignorecase = true, scandir_type:type = scandir_files);
native bool:mkdir(const path[]);
I'm not sure if he's willing to release the plugin, but I will ask.
Re: Creating Directories -
Y_Less - 13.12.2009
Quote:
Originally Posted by Rac3r
It's a shame YSF hasn't been updated for 0.3, I'm sure some scripts were based around the function YSF offered. Our server was.
|
It is now and works fine, including directory functions:
http://forum.sa-mp.com/index.php?topic=138599.0