SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 29/06/2007, 09:21 AM   #1
[xA]Ramjet
Little Clucker
 
Join Date: Jan 2007
Posts: 43
Reputation: 0
Default [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

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 Code:
#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.
[xA]Ramjet is offline   Reply With Quote
Old 29/06/2007, 10:12 PM   #2
Jacob
Little Clucker
 
Join Date: Apr 2005
Posts: 6
Reputation: 0
Default Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

Have you tested whether all of these functions are compatible with *nix?
Jacob is offline   Reply With Quote
Old 29/06/2007, 11:39 PM   #3
[xA]Ramjet
Little Clucker
 
Join Date: Jan 2007
Posts: 43
Reputation: 0
Default Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

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.
[xA]Ramjet is offline   Reply With Quote
Old 30/06/2007, 10:47 AM   #4
[xA]Ramjet
Little Clucker
 
Join Date: Jan 2007
Posts: 43
Reputation: 0
Default Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

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.
[xA]Ramjet is offline   Reply With Quote
Old 02/07/2007, 09:59 AM   #5
mabako
Big Clucker
 
Join Date: Apr 2006
Posts: 112
Reputation: 3
Default Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

you can (re)load filterscripts and change to the very same gamemode, what's your problem with that?
mabako is offline   Reply With Quote
Old 13/01/2008, 04:30 PM   #6
sir_daniel
Little Clucker
 
Join Date: Nov 2007
Posts: 2
Reputation: 0
Default Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

does is check if the folder already exists? and if yes it doesn't do anything?
sir_daniel is offline   Reply With Quote
Old 18/01/2008, 12:39 PM   #7
[LDT]LuxurY
Huge Clucker
 
[LDT]LuxurY's Avatar
 
Join Date: Feb 2007
Location: Russian Federation, Orekhovo-Zyevo
Posts: 219
Reputation: 1
Default Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

Sounds good. THX Ramjet!
[LDT]LuxurY is offline   Reply With Quote
Old 09/03/2008, 08:30 PM   #8
Magor
Little Clucker
 
Join Date: Jan 2008
Posts: 24
Reputation: 2
Default Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

If folder already exists, MakeDirectory returns -1 = making directory failed.
Magor is offline   Reply With Quote
Old 29/01/2010, 10:52 PM   #9
SaW_[VrTx]
Banned
 
Join Date: Feb 2007
Posts: 554
Reputation: 4
Default Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

Please re-upload it to other hosting.. Rapidshare su*ks (Can't download).
SaW_[VrTx] is offline   Reply With Quote
Old 31/01/2010, 09:52 AM   #10
kLx
Huge Clucker
 
kLx's Avatar
 
Join Date: Feb 2008
Posts: 206
Reputation: 6
Default Re: [REL] RLib v1.0 - Useful Functions for your Server. [w/ LINK]

Nice, but many people now prefere using mysql
__________________
Out of bussiness
kLx 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
[Include] [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) Lorenc_ Includes 14 21/04/2018 04:06 AM
please link for gm NightborN Client Support 0 18/10/2009 03:23 PM
help me please, link user226 Help Archive 12 08/08/2009 03:31 PM
[Tool/Web/Other] [PHP] Create an Start/Stop functions for more one server carlino1994 Server Support 1 29/06/2009 05:00 PM
Server not reconginzing functions or something MisterTickle Help Archive 8 02/03/2009 09:50 PM


All times are GMT. The time now is 01:41 PM.


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