SA-MP Forums Archive
[Plugin] [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - 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] [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] (/showthread.php?tid=5276)



[REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - [xA]Ramjet - 29.06.2007

Rlib v1.0
A library of Useful Functions for your server.
This plugin contains a library of 5 different functions for usage on your SA-MP server. Currently it contains:

Quote:

MakeDirectory(dir[]);
DelDirectory(dir[]);
ChmodFile(path[], type);
RemoveFile(path[]);
GetDrive();

Installation:

1. To use this script, place rlib.dll in your server's plugin directory. For a more indepth view of step 1, read this topic.

2. Put the rlib.inc (included with the download link), in your pawno/include directory.

3. To use in your PAWN scripts, use:
pawn Код:
#include <rlib>
Disclaimer:

This script contains absolutely no warranties, the owner of this script holds no liability for the (mis)use of this product.

More information:

Information on how these functions are used, eg the values they return, the parameters, can all be found in the include file, included with the release.

However, for those experienced with C++, you can just take a look at the code anyhow!

All file based functions have a scriptfiles dependency, to ensure safety of your server.

Download (Dev-Cpp):

Compiled / Source / Include.

Cheers,
Ramjet.


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - Jacob - 29.06.2007

Have you tested whether all of these functions are compatible with *nix?


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - [xA]Ramjet - 29.06.2007

Quote:
Originally Posted by Flyin
Ramjet - try to do live compilating
Wtf is that supposed to mean?

Quote:
Originally Posted by Jacob
Have you tested whether all of these functions are compatible with *nix?
I haven't tested them with *nix, as I don't have a *nix computer handy.

I will assume that they work, but I am unsure, as aru's scriptfiles dependency needed some functions from windows.h. I will also assume, that the scriptfiles dependency is the original scriptfiles dependency that we have always had, thus it should not be a problem.

Most of the functions come from direct.h and other io includes.

Cheers,
Ramjet.


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - [xA]Ramjet - 30.06.2007

Not only would that be insanely inefficent, my job isn't to provide you with more ways to become more lazy, so you can waddle around and put a pwn file anywhere and... watch it compile?!

How stupid, the file might not even be completed...

Cheers,
Ramjet.


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - mabako - 02.07.2007

you can (re)load filterscripts and change to the very same gamemode, what's your problem with that?


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - sir_daniel - 13.01.2008

does is check if the folder already exists? and if yes it doesn't do anything?


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - [LDT]LuxurY - 18.01.2008

Sounds good. THX Ramjet!


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - Magor - 09.03.2008

If folder already exists, MakeDirectory returns -1 = making directory failed.


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - SaW_[VrTx] - 29.01.2010

Please re-upload it to other hosting.. Rapidshare su*ks (Can't download).


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - kLx - 31.01.2010

Nice, but many people now prefere using mysql


Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK] - SiJ - 14.02.2010

....