Errors +Rep
#2

I managed to fix some of the errors above. But now I have some tag issues.

Here are the errors:

pawn Код:
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_ToysEdit.pwn(5125) : warning 213: tag mismatch
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_ToysEdit.pwn(5126) : warning 213: tag mismatch
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_ToysEdit.pwn(5127) : warning 213: tag mismatch
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_ToysEdit.pwn(5128) : warning 213: tag mismatch
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_ToysEdit.pwn(5129) : warning 213: tag mismatch
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_ToysEdit.pwn(5130) : warning 213: tag mismatch
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_ToysEdit.pwn(5131) : warning 213: tag mismatch
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_ToysEdit.pwn(5132) : warning 213: tag mismatch
C:\Users\User\Documents\SAMP Stuff\GTA-SH Server 0.3z\gamemodes\GTASH_ToysEdit.pwn(5133) : warning 213: tag mismatch
Here are the lines of code:

pawn Код:
forward LoadToys(playerid);
public LoadToys(playerid)
{
    new stringtoy[128];
    for(new x = 0; x < MAX_TOYS; x++)
    {
        format(stringtoy, sizeof(stringtoy), "South-WestRP/PlayerToys/%s.ini", GetPlayerNameEx(playerid));
        new File:example = fopen(stringtoy, io_read);
        if(example)
        {
            new key[ 256 ] , val[ 256 ];
            new Data[ 256 ];
            while ( fread( example , Data , sizeof( Data ) ) )
            {
                key = ini_GetKey( Data );
                if( strcmp( key , "tCreated[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tCreated][x] = strval( val ); }
                if( strcmp( key , "tEquipped[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tEquipped][x] = strval( val ); }
                if( strcmp( key , "tName[x]" , true ) == 0 ) { val = ini_GetValue( Data ); strmid(ToyInfo[playerid][tName][x], val, 0, strlen(val)-1, 128); }
                if( strcmp( key , "tIndexID[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tIndexID][x] = strval( val ); }
                if( strcmp( key , "tModelID[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tModelID][x] = strval( val ); }
                if( strcmp( key , "tBoneID[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tBoneID][x] = strval( val ); }
                if( strcmp( key , "tOffsetX[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tOffsetX][x] = floatstr( val ); } // Line 5125
                if( strcmp( key , "tOffsetY[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tOffsetY][x] = floatstr( val ); }
                if( strcmp( key , "tOffsetZ[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tOffsetZ][x] = floatstr( val ); }
                if( strcmp( key , "tRotX[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tRotX][x] = floatstr( val ); }
                if( strcmp( key , "tRotY[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tRotY][x] = floatstr( val ); }
                if( strcmp( key , "tRotZ[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tRotZ][x] = floatstr( val ); }
                if( strcmp( key , "tScaleX[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tScaleX][x] = floatstr( val ); }
                if( strcmp( key , "tScaleY[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tScaleY][x] = floatstr( val ); }
                if( strcmp( key , "tScaleZ[x]" , true ) == 0 ) { val = ini_GetValue( Data ); ToyInfo[playerid][tScaleZ][x] = floatstr( val ); } // Line 5133
            }
            fclose(example);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Errors +Rep - by Phil_Cutcliffe - 10.03.2014, 18:04
Re: Errors +Rep - by Phil_Cutcliffe - 10.03.2014, 18:37
Re: Errors +Rep - by Phil_Cutcliffe - 10.03.2014, 20:14
AW: Errors +Rep - by Macronix - 10.03.2014, 20:18
Re: AW: Errors +Rep - by Phil_Cutcliffe - 10.03.2014, 20:23
Re: Errors +Rep - by [D]ry[D]esert - 10.03.2014, 20:48
Re: Errors +Rep - by Phil_Cutcliffe - 10.03.2014, 22:11

Forum Jump:


Users browsing this thread: 1 Guest(s)