Thread: nVault Tutorial
View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-18-2012 , 13:56   Re: nVault
Reply With Quote #37

Sorry about that bibu, I didn't see page 2 for some reason and that this has already been resolved. Exolents function will do just fine, the only thing I think you have wrong is the window of time for pruning entries. Correct me if I'm wrong, I'm a little rusty.

PHP Code:
nvault_prune_key(g_score_vaultszDeathKeyget_systime(), 86400 get_pcvar_num(amx_death_expire_days)) 
Start: get_sys_time() = Now
End: 86400 * days = Days to remove in seconds (which is days starting from 01/01/1970 or w\e).

Should be

Start: 0 (01/01/1970)
End: get_systime() - ( get_pcvar_num( amx_death_expire_days ) * 86400 ) ) (Now - X days)
__________________

Last edited by Bugsy; 02-18-2012 at 13:57.
Bugsy is offline