Quote:
/**
* Retrieves data specified by a key
*
* @param vaultname Vault name to look in
* @param key Key name to look for the data
* @param data String which data will be copied to
* @param len Length of data
* @param timestamp The unix time of when the data was last set ( -1 if permanent data, 0 if old fvault version ) ( optional param )
* @return Returns 1 on success, 0 on failue.
*/
stock fvault_get_data(const vaultname[], const key[], data[], len, ×tamp=0)
|
PHP Code:
fvault_get_data(g_fvault, KEYNAME, STRING, STRINGLEN)
edit: I should probably do more than just post some copy-pasta, basically, STRING, is a variable with a length of STRINGLEN, so define a variable wherever you need this string (globally?) new string[128], then use fvault_get_data and STRING = string, and STRINGLEN = 128, there you go, that sum it up for ya?
__________________