View Single Post
Author Message
CarbonDioxide
Member
Join Date: Apr 2012
Old 05-26-2012 , 07:00   nVault prune help!
Reply With Quote #1

Hi all, I have this code:

PHP Code:
public plugin_init() 
{
    
register_concmd("amx_info_reset""admin_reset_all"ADMIN_IMMUNITY);

PHP Code:
public admin_reset_all(idlevelcid)
{
    if(!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED;
    
    new 
Vault nvault_open("Time_played");
    
    if(
Vault == INVALID_HANDLE)
        
set_fail_state("nVault returned invalid handle");
    
    
nvault_prune(Vault0get_systime());
    
nvault_close(Vault);

    return 
PLUGIN_HANDLED;

What I am trying to do is prune all the information in a .vault .
My problem is that when I compile it(successfully) and test it ingame, when I enter the command in the cs console this is returned and nothing happens:
Code:
] amx_info_reset  
Usage:  amx_info_reset
Am I doing something wrong ?
Regards
CarbonDioxide is offline