Raised This Month: $ Target: $400
 0% 

Save load MYSQL


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 05-09-2013 , 06:29   Re: AW: Re: AW: Save load MYSQL
Reply With Quote #1

Nope the only thing i need help with is to make this code
Code:
public SaveData( id )
{
    new szData[ 64 ], szKey[ 32 ];
    get_user_authid( id, szKey, charsmax( szKey ) );
    format( szKey, charsmax( szKey ), "%s-BOUGHTSKINS", szKey );
    
    for( new i ; i < MAX_SKINS ; i ++ )
        if( g_bBoughtSkin[ id ][ i ] )
            format( szData, charsmax( szData ), "%s%i-", szData, i );
    
    set_vaultdata( szKey, szData );
}
public LoadData( id )
{
    new szData[ 64 ], szKey[ 32 ], szPiece[ 32 ];
    
    get_user_authid( id, szKey, charsmax( szKey ) );
    format( szKey, charsmax( szKey ), "%s-BOUGHTSKINS", szKey );
    
    get_vaultdata( szKey, szData, charsmax( szData ) );
    
    while( contain( szData, "-" ) >= 0 ) 
    {       
        strtok( szData, szPiece, charsmax( szPiece ), szData, charsmax( szData ), '-' );      
        
        g_bBoughtSkin[ id ][ str_to_num( szPiece ) ] = true;
    }
}
save like SQL
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
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 10:57.


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