clearing vault
How can i clear a vault on a efficient way?
nvault_prune, nvault_pset or both? (is nvault_pset correct in this code block?) PHP Code:
|
Re: clearing vault
nvault_prune( vault , 0 , get_systime() )
This will not remove entries written with pset, for that you can use nvault_util include to read entries and delete them manually. |
Re: clearing vault
how do i do that?
can you show me how you code to clear the vault from all data |
Re: clearing vault
Just delete the file located in ur data folder.
|
Re: clearing vault
Quote:
Do it the admin way. :D or you can use delete_file ;) |
Re: clearing vault
Quote:
|
Re: clearing vault
Yes, and also from my expierence deleting the vault doesnt nescsearely clear it.
I've done it before and also deleted the journal file and the plugin vault was bugged then idk why but it wasnt working anymore. So like kreation said I need to know how to code it for like when i want to do it manually from ingame (wich is so much faster) or when i decide to add a function that clears all data in the vault after a period of time. so can anyone tell me the best way to clear a vault effecient (through coding). grtz |
Re: clearing vault
don't use pset. just use nvault_set if you want to be able to clear all entries. pset is for more like identifiers, or notes or things that you don't want to get rid of. Hence p(ermanent)set
In answer to your original question. If your data is saved using nvault_set just use nvault_prune(g_iVault, 0, get_systime()) |
Re: clearing vault
Quote:
PHP Code:
|
Re: clearing vault
Quote:
I'm gonna try the code you gave bugsy, I hope it will work becous I cant delete my vault anymoer :s i deleted it 3times but it always seems to come back automaticly with all the data intact, very strange |
| All times are GMT -4. The time now is 15:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.