Raised This Month: $ Target: $400
 0% 

nVault - Database


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 11-10-2009 , 02:45   nVault - Database
Reply With Quote #1

Hello guys,

I would like to use the nvault database instead of the vault database to store some important values of my plugin. But I haven't any experience with the nvault modul and didn't find a tutorial.

1. Should I open and close the database for each query, or should I open the database on plugin_init and close them on plugin_end?
2. What is the parent folder of the nvault_open function, the cstrike folder or the data folder where I can find the vault.ini?

Many many thanks in advance.

Best Regards
Leon

Last edited by Leon M.; 11-10-2009 at 02:54. Reason: Removing a really stupid question ;)
Leon M. is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 11-10-2009 , 03:31   Re: nVault - Database
Reply With Quote #2

Your nVault folder is in:
PHP Code:
$gamedir/addons/amxmodx/data/vault 
No, you don't have to open or close the nVault at each query
Just start it in plugin_init() and close it in plugin_end() or wherever in your public.

Hope that helps
__________________
unnyquee is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-10-2009 , 03:52   Re: nVault - Database
Reply With Quote #3

I'm using this
http://forums.alliedmods.net/showthread.php?t=91503
__________________
xbatista is offline
Send a message via Skype™ to xbatista
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 11-10-2009 , 04:11   Re: nVault - Database
Reply With Quote #4

It is a very good way to store data (like frags, deaths, money or whatever)
But if you want to display those informations on websites, you could use DBI (from my point of view, it's very simple)

Good luck!
__________________
unnyquee is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 11-10-2009 , 05:55   Re: nVault - Database
Reply With Quote #5

omg , I'm blind. I didn't find this thread. Thank you very much for the replies.
Leon M. is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 11-10-2009 , 06:09   Re: nVault - Database
Reply With Quote #6

I hope that you are aware that nVault informations are stored in binary mode.. so you can't open them and read just like an ordinary document..
__________________
unnyquee is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 11-10-2009 , 11:42   Re: nVault - Database
Reply With Quote #7

Im using this : http://forums.alliedmods.net/showthread.php?t=76453

Pretty happy so far.
__________________
I am out of order!
grimvh2 is offline
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

Forum Jump


All times are GMT -4. The time now is 17:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode