Tag Mismatch
#1

Код:
C:\Users\user\Desktop\SAMP\San Andreas Life Roleplay - Copy\gamemodes\SAL-RP_script.PWN(27642) : warning 213: tag mismatch
C:\Users\user\Desktop\SAMP\San Andreas Life Roleplay - Copy\gamemodes\SAL-RP_script.PWN(27644) : warning 213: tag mismatch
PHP код:
LoadcDealerships()
{
    new 
string2[64];
    
format(string2sizeof(string2), "cardealerships.ini");
    new 
FileDealerFile fopen(string2io_read);
    if ( 
DealerFile )
    {
        new 
key256 ] , val256 ];
        new 
Data256 ];
        while ( 
freadDealerFile Data sizeofData ) ) )
        {
            new 
string[128];
            for(new 
0MAX_FAMILYf++)
            {
                
key ini_GetKeyData );
                
format(string128"cd%dOwned",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdOwned] = strvalval ); }
                
format(string128"cd%dOwner",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); strmid(CarDealershipInfo[f][cdOwner], val0strlen(val)-1255); }
                
format(string128"cd%dEntranceX",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdEntranceX] = floatstrval ); }
                
format(string128"cd%dEntranceY",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdEntranceY] = floatstrval ); }
                
format(string128"cd%dEntranceZ",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdEntranceZ] = floatstrval ); }
                
format(string128"cd%dExitX",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdExitX] = floatstrval ); }
                
format(string128"cd%dExitY",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdExitY] = floatstrval ); }
                
format(string128"cd%dExitZ",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdExitZ] = floatstrval ); }
                
format(string128"cd%dMessage",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); strmid(CarDealershipInfo[f][cdMessage], val0strlen(val)-1255); }
                
format(string128"cd%dTill",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdTill] = strvalval ); }
                
format(string128"cd%dInterior",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdInterior] = strvalval ); }
                
format(string128"cd%dVehicleSpawn0",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleSpawn][0] = floatstrval ); }
                
format(string128"cd%dVehicleSpawn1",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleSpawn][1] = floatstrval ); }
                
format(string128"cd%dVehicleSpawn2",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleSpawn][2] = floatstrval ); }
                
format(string128"cd%dVehicleSpawn3",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleSpawn][3] = floatstrval ); }
                
format(string128"cd%dRadius",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdRadius] = floatstrval ); }
                
format(string128"cd%dPrice",f);
                if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdPrice] = strvalval ); }
                for(new 
fv 0fv MAX_DEALERSHIPVEHICLESfv++)
                {
                    
format(string128"cd%dVeh%dModelId",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleModel][fv] = strvalval ); }
                    
format(string128"cd%dVeh%dCost",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleCost][fv] = strvalval ); }
                    
format(string128"cd%dVeh%dSpawnX",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleSpawnX][fv] = floatstrval ); }
                    
format(string128"cd%dVeh%dSpawnY",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleSpawnY][fv] = floatstrval ); }
                    
format(string128"cd%dVeh%dSpawnZ",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleSpawnZ][fv] = floatstrval ); }
                    
format(string128"cd%dVeh%dSpawnA",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleSpawnAngle][fv] = floatstrval ); }
                    
format(string128"cd%dVeh%dColor1",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleColor1][fv] = floatstrval ); } // Error Code
                    
format(string128"cd%dVeh%dColor2",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleColor2][fv] = floatstrval ); } // Error Code
                
}
            }
        }
        
fclose(DealerFile);
    }
    return 
1;

Reply
#2

Can you show your enum? And btw colors are not floats try like this:

PHP код:
format(string128"cd%dVeh%dColor1",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleColor1][fv] = strvalval ); } // Error Code
                    
format(string128"cd%dVeh%dColor2",ffv);
                    if( 
strcmpkey string true ) == ) { val ini_GetValueData ); CarDealershipInfo[f][cdVehicleColor2][fv] = strvalval ); } // Error Code 
And use Y_INI or mysql.
Reply
#3

I found out why. Thank you for responding tho. Rep+
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)