AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   nvault prune (https://forums.alliedmods.net/showthread.php?t=155288)

killergirl 04-19-2011 20:30

nvault prune
 
I'm new in using nvault, and I have some questions about timestamp. For ex. yesterday I created 4 values, today 3 values and tomorrow I will create another 6 values.

PHP Code:

public plugin_cfg()
{        
    
set_task(10.0"prune")
}

public 
prune()
{    
    
nvault_prune(g_Vaultget_systime() - (10 86400) )
    
    return 
PLUGIN_HANDLED


So, this function will delete all values in 10 days or one by one when the value was created?

Exolent[jNr] 04-19-2011 20:39

Re: nvault prune
 
It deletes all entries that have timestamps in that range (0 to (get_systime() - (10 * 86400))).


All times are GMT -4. The time now is 19:57.

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