Creating Directories
#1

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

Why don't you ask in plugin's topic?
Reply
#3

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

Quote:
Originally Posted by Y_Leѕѕ
Try the YSF directory functions.
No 0.3 version ?
Reply
#5

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 ? =\
Reply
#6

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

=\\

What would I do ?
Reply
#8

system("mkdir /path/to/directory");

... would only work on Linux, but you could probably use something like ::CreateDirectory on Windows.
Reply
#9

If I remember correct you can get pawn to execute "shell" commands on windows, haven't tried throu
Reply
#10

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)