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(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED;
new Vault = nvault_open("Time_played");
if(Vault == INVALID_HANDLE)
set_fail_state("nVault returned invalid handle");
nvault_prune(Vault, 0, get_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