Raised This Month: $ Target: $400
 0% 

nVault help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 09-03-2005 , 09:30  
Reply With Quote #10

it works fine for me.....

Heres a sample

Code:
//Name for binary vault file #define VAULTNAME "somevault" #define DAYS_TO_SAVE 30 new gVaultHandle //---------------------------------------------------------------------------------------------- public some_function() {     gVaultHandle = nvault_open(VAULTNAME)     if (gVaultHandle == INVALID_HANDLE) {         log_amx("Error opening nVault file: %s",VAULTNAME)     }         //Setting Data     nvault_set(gVaultHandle, key, data)         //Getting Data     new data[1501], timestamp     nvault_lookup(gVaultHandle, key, data, 1500, timestamp)         //Pruning     if (clearAll)   nvault_prune(gVaultHandle, 0, 0)     else            nvault_prune(gVaultHandle, 0, get_systime() - DAYS_TO_SAVE * 24 * 3600))         //Close (dont use right now cause it crashes)     //nvault_close(gVaultHandle) }
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
 



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


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