Raised This Month: $ Target: $400
 0% 

read all entrys from nvault


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Max!
Member
Join Date: Jun 2009
Old 12-04-2011 , 04:12   read all entrys from nvault
Reply With Quote #1

im using nvault as a way to store a bunch of data about the going-ons in the server so i can insert all the information into a database at the end of the map in 1 query, to maximize efficiency. This requires that I read (and then delete) all entry's in the vault at the end of tha map, but Ive never used nvault before so im having trouble with this. Ive looked at the nvault_util as well, but that forwards the information to a function every time which would mean I couldn't format all of the information easily into 1 sql query. essentially I would like something that does this:
Code:
format(query, 1024, "INSERT INTO stats col1,col2 VALUES ");
while(theresmoreentries)
{
   getinfofromvaultandsplitit_into_value1andvalue2(iVault);
   format(query, 1024, "%s('col1value', 'col2value') ", query, value1, value2);
}

executetheformattedqueryouthere
sorry for all the bad pseudo code ;)

Last edited by Max!; 12-04-2011 at 04:14.
Max! 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 08:24.


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