AMX Mod X API Documentation

Signature
native nvault_prune(vault, start, end);
Description

Prunes the vault for entries that are within the given timestamps.

Notes
  • This will not erase values set with nvault_pset().
  • An example of pruning all entries that are older than 24 hours:

    nvault_prune(vaultHandle, 0, get_systime() - (60 * 60 * 24));

Parameters
  • vault A vault handle returned from nvault_open()
  • start The timestamp to start erasing from
  • end The timestamp to erase to
Returns

Number of erased values.

Errors
  • On invalid vault handle.
Назад
Верх