SA-MP Forums Archive
[Plugin] Directory - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] Directory (/showthread.php?tid=196089)



Directory - Terminator3 - 04.12.2010

My simple plugin ^^



Functions:

dcreate(const name[]) dremove(const name[])remove directory with files in (do not know if this working on Unix)

rename(const oldname[], const newname[]) Download:
Plugin .dll + include

Plugins .so


sorry for my bad english


Re: Directory - WillyP - 04.12.2010

Cool

8char


Re: Directory - TheArcher - 04.12.2010

Nice one, its also compatibile for Linux?


Re: Directory - Terminator3 - 04.12.2010

Quote:
Originally Posted by Anthony_prince
Посмотреть сообщение
Nice one, its also compatibile for Linux?
no, I do not have Linux or knowledge about building plugins for this system


Re: Directory - xxmitsu - 04.12.2010

ok, now here's the modified source and compiled binary for linux CentOS:

http://solidfiles.com/d/2287/

Tested, seems to work fine
dcreate and rename
however, how you just said, dremove function isn't working and I haven't touched that


Re: Directory - Terminator3 - 04.12.2010

@xxmitsu for linux use rmdir is best solution i think


Re: Directory - willsuckformoney - 04.12.2010

Make it better. Meaning Make it so you can Edit the files. Other than that, nice.


Re: Directory - Terminator3 - 04.12.2010

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
Make it better. Meaning Make it so you can Edit the files. Other than that, nice.
this is my first plugin, created in dev-cpp, soon I will give another much better (created in VS), but I have to translate the descriptions of functions etc.


Re: Directory - MrDeath537 - 04.12.2010

Simple and nice!

But here are about 3 plugins about files/directories


Re: Directory - RyDeR` - 04.12.2010

Released 2 times before:
- YSF 0.3
- FileManager

But nice job!


Re: Directory - [L3th4l] - 04.12.2010

NVM


Re: Directory - Terminator3 - 05.12.2010

Quote:
Originally Posted by RyDeR`
Посмотреть сообщение
Released 2 times before:
- YSF 0.3
- FileManager

But nice job!
YSF dont have dremove

FileMenager is strange for me

//EDIT: New soucre in first post