2004-02-21 23:30:04 +03:00
|
|
|
/* Vault functions
|
2004-01-31 23:56:22 +03:00
|
|
|
*
|
2004-02-21 23:30:04 +03:00
|
|
|
* by the AMX Mod X Development Team
|
|
|
|
* originally developed by OLO
|
2004-02-08 14:31:54 +03:00
|
|
|
*
|
2004-01-31 23:56:22 +03:00
|
|
|
* This file is provided as is (no warranties).
|
|
|
|
*/
|
|
|
|
|
2004-02-21 23:30:04 +03:00
|
|
|
#if defined _vault_included
|
|
|
|
#endinput
|
|
|
|
#endif
|
|
|
|
#define _vault_included
|
|
|
|
|
2004-01-31 23:56:22 +03:00
|
|
|
/* Reads a data from given key.
|
2004-02-21 23:30:04 +03:00
|
|
|
* If len is set to zero then get_vaultdata
|
|
|
|
* returns value as an number. */
|
2004-01-31 23:56:22 +03:00
|
|
|
native get_vaultdata(const key[], data[] = "", len = 0);
|
|
|
|
|
|
|
|
/* Sets a data under given key. */
|
2007-08-10 08:52:12 +04:00
|
|
|
native set_vaultdata(const key[], const data[] = "");
|
2004-01-31 23:56:22 +03:00
|
|
|
|
|
|
|
/* Removes a key from vault.*/
|
|
|
|
native remove_vaultdata(const key[]);
|
|
|
|
|
|
|
|
/* Checks if a key exists in the vault.*/
|
2007-08-10 08:52:12 +04:00
|
|
|
native vaultdata_exists(const key[]);
|