Raised This Month: $ Target: $400
 0% 

How can i save and load a string?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 06-07-2010 , 17:39   Re: How can i save and load a string?
Reply With Quote #4

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, &timestamp=0)
PHP Code:
fvault_get_data(g_fvaultKEYNAMESTRINGSTRINGLEN
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?
__________________
+|- KARMA Respectively

HLM is offline
 



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 05:15.


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