Raised This Month: $ Target: $400
 0% 

Fvault_load(id) error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-08-2013 , 11:16   Re: Fvault_load(id) error
Reply With Quote #1

Update your fvault inc file from here.
Also, id is not correct usage for fvault_load().
Code:
/**  * Gets all vault keys, data, and timestamps  *  * @param       vaultname - Vault name to look in  * @param       keys - cellarray holding all of the keys  * @param       datas - cellarray holding all of the data values  * @param       timestamps - cellarray holding all of the timestamps  *  * @return      Returns total number of entries in vault  *  * @note        keys needs to be created like this: ArrayCreate(64)  *          datas needs to be created like this: ArrayCreate(512)  *          timestamps need to be created like this: ArrayCreate()  */ stock fvault_load(const vaultname[], Array:keys=Invalid_Array, Array:datas=Invalid_Array, Array:timestamps=Invalid_Array)

I think you want fvault_get_data():
Code:
/**  * 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, &timestamp=0)
__________________

Last edited by Black Rose; 08-08-2013 at 15:30.
Black Rose is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode