SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 04/12/2010, 05:26 PM   #1
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Directory

My simple plugin ^^



Functions:

dcreate(const name[])
  • name[] - name of directory to create

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

rename(const oldname[], const newname[])
  • oldname[] - old name of file/directory
  • newname[] - new name of file/directory

Download:
Plugin .dll + include

Plugins .so


sorry for my bad english

Last edited by Terminator3; 13/02/2012 at 04:59 PM.
Terminator3 is offline   Reply With Quote
Old 04/12/2010, 05:28 PM   #2
WillyP
High-roller
 
WillyP's Avatar
 
Join Date: Jul 2010
Location: England
Posts: 2,027
Reputation: 63
Default Re: Directory

Cool

8char
__________________
once average now terrible
WillyP is offline   Reply With Quote
Old 04/12/2010, 05:31 PM   #3
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: Directory

Nice one, its also compatibile for Linux?
TheArcher is offline   Reply With Quote
Old 04/12/2010, 05:34 PM   #4
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: Directory

Quote:
Originally Posted by Anthony_prince View Post
Nice one, its also compatibile for Linux?
no, I do not have Linux or knowledge about building plugins for this system
Terminator3 is offline   Reply With Quote
Old 04/12/2010, 05:58 PM   #5
xxmitsu
Gangsta
 
Join Date: Feb 2009
Posts: 622
Reputation: 36
Default Re: Directory

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
xxmitsu is offline   Reply With Quote
Old 04/12/2010, 06:53 PM   #6
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: Directory

@xxmitsu for linux use rmdir is best solution i think
Terminator3 is offline   Reply With Quote
Old 04/12/2010, 07:45 PM   #7
willsuckformoney
High-roller
 
willsuckformoney's Avatar
 
Join Date: Dec 2009
Posts: 1,494
Reputation: 65
Default Re: Directory

Make it better. Meaning Make it so you can Edit the files. Other than that, nice.
__________________
Fuck the system.
willsuckformoney is offline   Reply With Quote
Old 04/12/2010, 07:51 PM   #8
Terminator3
Big Clucker
 
Terminator3's Avatar
 
Join Date: Oct 2009
Posts: 70
Reputation: 25
Default Re: Directory

Quote:
Originally Posted by willsuckformoney View Post
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.
Terminator3 is offline   Reply With Quote
Old 04/12/2010, 08:04 PM   #9
MrDeath537
High-roller
 
Join Date: Nov 2009
Location: Argentina
Posts: 1,959
Reputation: 29
Default Re: Directory

Simple and nice!

But here are about 3 plugins about files/directories
__________________
Sometimes I return.
MrDeath537 is offline   Reply With Quote
Old 04/12/2010, 08:29 PM   #10
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: Directory

Released 2 times before:
- YSF 0.3
- FileManager

But nice job!
__________________

Sup?
RyDeR` is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VPS: So such file or Directory deadly Server Support 5 23/10/2010 08:44 PM
Reading directory regdude Help Archive 2 29/08/2010 08:27 PM
HELP CANT RUN OR EDIT ANYTHING IN GTA SA DIRECTORY Egypt1123 Client Support 9 14/09/2009 04:18 AM
Invalid Directory Pwnu2death Client Support 2 30/06/2009 08:44 PM
No such file or directory? Hyperion Server Support 0 28/06/2009 10:59 PM


All times are GMT. The time now is 04:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.