INI TO SQL
#1

PHP код:
    for(new 047++)//weap_save
    
{
        new 
weaponstr[128];
        
format(weaponstrsizeof(weaponstr), "weapon%d",f);
        
ini_setInteger(iniFile,weaponstr0);
    }
    for(new 
013++)//weap_save
    
{
        new 
w,a;
        new 
weaponstr[128];
        
GetPlayerWeaponData(playerid,s,w,a);
        if(
0)
        {
            
format(weaponstrsizeof(weaponstr), "weapon%d",w);
            
ini_setInteger(iniFile,weaponstra);
        }
        
//printf( "slot %d weapon %d ammp %d", s,w,a);
    

How to create sql save for this script?
Reply
#2

Please refer to a related tutorial, you aren't going to magically convert that to SQLite/MySQL. There's more to just changing a few lines.
Reply
#3

I have only one question can i convert this script to sql ? Like
PHP код:
insert into ....... 
Reply
#4

Yes, but if you don't have anything related to it yet, then there's more to that.

Again, please refer to a related tutorial.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)