[Plugin] [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]
#1

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

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

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

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

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

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

Sounds good. THX Ramjet!
Reply
#8

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

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

Nice, but many people now prefere using mysql
Reply
#11

....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)