SA-MP Forums Archive
[Plugin] FileFunctions v0.1b - 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] FileFunctions v0.1b (/showthread.php?tid=252918)

Pages: 1 2 3


FileFunctions v0.1b - RyDeR` - 03.05.2011

FileFunctions v0.1b

This plugin allows you to manage files. There are some interresting features: Natives Changelog

0.1b:
- Initial release.

Download

Download (Source + Include + .dll) (Windows)
Download (Source + .so) (Linux)

Note(s)

- You must have Microsoft .NET Framework 4 installed to run this.
- This is a beta version and may contain bugs. Please report if you find one.
- Credits go to this site where I got many useful information from.


Re: FileFunctions v0.1b - CJ101 - 03.05.2011

Cool, but would be nice to be able to remove specific lines from files too.

Update:
You would be the sexiest person in SA-MP if you integrated a INI system into this too.


Re: FileFunctions v0.1b - Zh3r0 - 03.05.2011

Nice job RyDeR.

How about some functions to check folders, for example?


Re: FileFunctions v0.1b - fissekarl - 03.05.2011

Nice


Re: FileFunctions v0.1b - 1337connor - 03.05.2011

Suggestion:
FileRename(const currentName[], const newName[]);

Would be useful for /setname


Re: FileFunctions v0.1b - RyDeR` - 03.05.2011

@cj101:
Great idea, I'll add that ASAP!

@Zh3r0:
Thanks Zh3r0! Oh, a function like "directoryExists" or something?

@fissekarl:
Sure, you will be able to do that when I add the proposal from cj101. Check the topic for updates.

@1337connor:
"fileMove(const currentFilePath[], const newFilePath[]);" does the thing that you want


Re: FileFunctions v0.1b - GaGlets(R) - 03.05.2011

Thank you! You made my minute x]


Re: FileFunctions v0.1b - Ricop522 - 03.05.2011

I love that


Re: FileFunctions v0.1b - =WoR=Varth - 03.05.2011

Good work


Re: FileFunctions v0.1b - Calgon - 03.05.2011

You should create a function for fileRename() for people who won't be able to understand how fileMove() works.


Re: FileFunctions v0.1b - 1337connor - 03.05.2011

fileMove("/Players/name.ini","/Players/newname.ini");
If I'm correct.


Re: FileFunctions v0.1b - RyDeR` - 03.05.2011

Quote:
Originally Posted by 1337connor
View Post
fileMove("/Players/name.ini","/Players/newname.ini");
If I'm correct.
Yes, you have to keep the path and just change the filename.


Re: FileFunctions v0.1b - Calgon - 03.05.2011

Yes, I realize how it's done, I use 'mv' on Linux a lot of the time, but newbie scripters are going to use this and this is just going to lead to a million questions in this thread.


Re: FileFunctions v0.1b - serman - 04.05.2011

Good Work


Re: FileFunctions v0.1b - QuaTTrO - 04.05.2011

Ryder can you make a example ?


Re: FileFunctions v0.1b - CookieCrusher - 04.05.2011

Nice , Maybe i'll use this one day if needed :P


Re: FileFunctions v0.1b - RyDeR` - 04.05.2011

Quote:
Originally Posted by __[ShaDoW]__
View Post
Ryder can you make a example ?
I'm completely rewriting the system. I will add examples for in the next update, stay tuned.


Re: FileFunctions v0.1b - [MWR]Blood - 04.05.2011

Very nice and useful release!


Re: FileFunctions v0.1b - xir - 04.05.2011

https://sampforum.blast.hk/showthread.php?tid=92246

isnt it the same thing?


Re: FileFunctions v0.1b - xir - 05.05.2011

Can I ask what's the difference? Because it's not limited to scriptfiles either?