SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 08/05/2006, 12:44 PM   #1
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 815
Reputation: 43
Default [DUDB] Userdatabase Management (Version 2.4, 4th July) // 0.2#Ready

Lots of guys asked for it, here it is. A filebased, crash-secure, easy-to-expand Userdatabase for SA-MP.

DUDB:
o Download
o @requires DUtils 1.10
o @requires DINI 1.6

Features
o Filebased user database functions
o Crash security
o Encrypted Passwords & Logincheck.
o More things easy to add on the fly!
o Readable with PHP, use following functions to decode fileformat

How To's
o change users password

How should download and use this?
Everyone who is to lazy to write an own Userdatabase management and want to use a heavy tested user database management. You should have skills in coding pawn/c, since it only exports the functions - no command handling in - thats what you have to do!

Crash security : How does it work?
Its saved at a .part file before removing the old file, so if the sever crashs while saving - no data lost!

Tested? How!?
This file has been tested while using on my testservers and with DTest, a library for fast coding-snippets testing. All tests went well, so it should work as expected!

How to set up a easy account?
Use udb_Create("Nickname","mypassword") to create a user with password=mypassword.
If you want to check the logins for this player, use udb_CheckLogin("Nickname","mypassword") - it should work!
If you want to set the clantag, use the new dUserSet("Nickname").("clantag","NEW").
If you want to set ASJKDHKSJDH use dUserSet("Nickname").("ASJKDHKSJDH ","jkhj123")
To get the value of "sads", type dUser("Nickname").("sads")
To remove the account use udb_Remove("Nickname") - it will return true, if the acc existed.
To rename an account use udb_renameUser("Nickname","NewNickname") - it will return true, if the acc existed.

Thats just a small insight, hope it will be useful.

Regards,
Jan (DracoBlue)
__________________
Auto-Indent Your Code online with TidyPawn

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer][serverside javascript mvc framework]


Last edited by DracoBlue; 11/09/2012 at 12:18 PM.
DracoBlue is offline   Reply With Quote
Old 08/05/2006, 03:07 PM   #2
Cyborgmatt
Little Clucker
 
Join Date: Apr 2006
Posts: 2
Reputation: 3
Default Re: [DUDB] Userdatabase Management (Source Included)

Very nice.
Cyborgmatt is offline   Reply With Quote
Old 08/05/2006, 03:58 PM   #3
SidViciousII
Little Clucker
 
Join Date: Apr 2006
Posts: 13
Reputation: 0
Default Re: [DUDB] Userdatabase Management (Source Included)

OMG Draco, You are the king of kings m8! thankyou!! I was working on my own save game system but it was taking ages! cheaz!
SidViciousII is offline   Reply With Quote
Old 14/05/2006, 05:54 PM   #4
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 815
Reputation: 43
Default Re: [DUDB] Userdatabase Management (Source Included)

Has been updated!

Please use latest DUtils 1.3 to get it working!

Regards,
Jan (DracoBlue)
__________________
Auto-Indent Your Code online with TidyPawn

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer][serverside javascript mvc framework]

DracoBlue is offline   Reply With Quote
Old 01/06/2006, 01:11 PM   #5
grimreaper423
Little Clucker
 
Join Date: May 2006
Posts: 24
Reputation: 0
Default Re: [DUDB] Userdatabase Management (Source Included)

well ive done what it says in the the Notepad files and i get this
http://www.filelodge.com/files/room21/551578/HMTH.bmp


Dont advertise, don't hotlink such stupidly huge images, especially BMPs, and don't double post (as you had before I removed it).

- Y_Less


SORRY ABOUT IT BEING BIG please help me
grimreaper423 is offline   Reply With Quote
Old 01/06/2006, 01:31 PM   #6
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 815
Reputation: 43
Default Re: [DUDB] Userdatabase Management (Source Included)

you created a folder called scriptfiles?
__________________
Auto-Indent Your Code online with TidyPawn

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer][serverside javascript mvc framework]

DracoBlue is offline   Reply With Quote
Old 01/06/2006, 01:35 PM   #7
grimreaper423
Little Clucker
 
Join Date: May 2006
Posts: 24
Reputation: 0
Default Re: [DUDB] Userdatabase Management (Source Included)

yea
grimreaper423 is offline   Reply With Quote
Old 01/06/2006, 08:48 PM   #8
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 815
Reputation: 43
Default Re: [DUDB] Userdatabase Management (Source Included)


Please use latest DUtils 1.3 to get it working!

Do you use latest DUtils?
__________________
Auto-Indent Your Code online with TidyPawn

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer][serverside javascript mvc framework]

DracoBlue is offline   Reply With Quote
Old 01/06/2006, 08:50 PM   #9
grimreaper423
Little Clucker
 
Join Date: May 2006
Posts: 24
Reputation: 0
Default Re: [DUDB] Userdatabase Management (Source Included)

yes
grimreaper423 is offline   Reply With Quote
Old 01/06/2006, 09:31 PM   #10
DracoBlue
Gangsta
 
Join Date: Apr 2006
Posts: 815
Reputation: 43
Default Re: [DUDB] Userdatabase Management (Source Included)

will have a look at this tomorrow, its really late here .

Please doublecheck if you have all files and stuff, and REMEMBER; the dtest, is just a TEST not whole working loginsystem
__________________
Auto-Indent Your Code online with TidyPawn

dcmd 1.0 | dini 1.6 | djson 1.6.2 (The offic. Dini²) | DMap 0.4 | DModule 0.13 (Dynamic GM/FS) | DUDB 2.4 | DTest 1.2 | Dutils 1.10

[dracoblue's dev-diary][php + javascript developer][serverside javascript mvc framework]

DracoBlue 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
[GameMode] >> [GM] GTAF Version 1.0 || 20th July 2008 << FarePak Gamemode Scripts 18 16/06/2013 03:36 PM
[HowTo] Using dudb 2.4 to save money/stats/whatever (0.2#Ready) DracoBlue Help Archive 748 17/09/2010 10:14 AM
[Include] [INC]KID UserDataBase '''UPDATED''' tHe_kiD Includes 14 31/07/2010 05:33 PM
Some Random 4th Of July Photos cj101 Screenshots and Videos 1 05/07/2009 09:45 AM


All times are GMT. The time now is 03:27 PM.


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