Raised This Month: $ Target: $400
 0% 

nVault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-21-2007 , 12:44   nVault
Reply With Quote #1

this is my first time using nVault, am I doing this correectly, I kinda just pulled it outta my butt....
Code:
#define PLUGIN_VAULT "avp_vault" new vault = nvault_open(PLUGIN_VAULT);     if(vault == INVALID_HANDLE) {     avp_log("ERROR: Unable to open vault file %s", PLUGIN_VAULT);     return PLUGIN_CONTINUED; }     //saves nvault_set(vault, szKey, szData);     nvault_close(vault);
I format the key/data earlier I am not sure I am using the nvault system right or not...

then loading:
Code:
new vault = nvault_open(PLUGIN_VAULT);     if(vault == INVALID_HANDLE) {     avp_log("ERROR: Unable to open vault file %s", PLUGIN_VAULT);     return PLUGIN_CONTINUED; } new szKey[128], szData[256], data; data = nvault_get(vault, szKey, szData, 255);         nvault_close(vault); if(data) {     parse(szData, ........); //parse dfata blah blah } else {     //if this is called key not found???? I dunno.... }

is that right?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
 



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 21:26.


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