Hi,
Today I tried to get Timestamp from a nvault key.
Code:
PHP Code:
new iTimestamp , szVal[ 10 ], AuthID[33];
get_user_authid(id, AuthID, charsmax(AuthID))
if(!nvault_lookup( g_Vault , AuthID, szVal , charsmax( szVal ) , iTimestamp )
{
//do stuff
}
else
{
client_print(id, print_team_default, "You need to wait %02d hours until execute again!", (get_systime() - iTimestamp) );
return PLUGIN_HANDLED;
}
This should get timeleft until the key got prune, but I get only this every second when I type the command to execute the code above:
PHP Code:
You need to wait 1 hours until execute again!
You need to wait 2 hours until execute again!
You need to wait 3 hours until execute again!
You need to wait 4 hours until execute again!
I tried to use UnixTime Converter but nothing.
__________________