Raised This Month: $ Target: $400
 0% 

Save variables


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
leonardo121
Member
Join Date: Sep 2013
Old 07-26-2017 , 17:17   Re: Save variables
Reply With Quote #1

search more, talking about this ?

PHP Code:
/** THIS IS AN EXAMPLE */
LoadCTWins(  )
{
    new 
vaultkey64 ], vaultdata256 ];
    
    
formatvaultkeycharsmaxvaultkey ), "CTWINS");

    if(!
nvault_getvaultvaultkeyvaultdata255 )) return PLUGIN_HANDLED

    parse
vaultdataCTWins32 );

    
// your variable 
    
CTWins str_to_numvaultdata );
    
}


SaveCTWins( )
{
    new 
vaultkey64 ], vaultdata256 ];

    
formatexvaultkeycharsmaxvaultkey ), "CTWINS")
    
formatexvaultdatacharsmaxvaultdata ), "%i"CTWins)
    
    
//store
    
nvault_setvaultvaultkeyvaultdata )
    


Last edited by leonardo121; 07-27-2017 at 16:17.
leonardo121 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 22:51.


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