PDA

View Full Version : warning 213: tag mismatch ** REP OFFERED TO THE PERSON WHO HELPS ME FIX IT COMPLETELY **


DanishHaq
24/07/2013, 03:43 PM
Hi, I'm having a bit of trouble... I've tried everything of my own knowledge to fix it myself, but no luck whatsoever.

I'm getting this warning: warning 213: tag mismatch on 33 of my lines.

The following lines come with errors:

C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1079) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1079) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1080) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1080) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1081) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1081) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1825) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1825) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1825) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1827) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1828.) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1829) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1833) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1834) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1835) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1890) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1890) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1890) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1892) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1893) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(1894) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2379) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2379) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2380) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2380) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2381) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2381) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2596) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2596) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2597) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2597) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2598.) : warning 213: tag mismatch
C:\Users\Danish Haq 2\Desktop\Stuff\1. GM's\GF\gamemodes\gf.pwn(2598.) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


33 Warnings.


Lines 1079 1080 1081:

INI_Int("Pos_x",PlayerInfo[playerid][Float:pPos_x]);
INI_Int("Pos_y",PlayerInfo[playerid][Float:pPos_y]);
INI_Int("Pos_z",PlayerInfo[playerid][Float:pPos_z]);


Lines 1825 -- 1838:

if ((PlayerInfo[playerid][Float:pPos_x]==0.0 && PlayerInfo[playerid][Float:pPos_y]==0.0 && PlayerInfo[playerid][Float:pPos_z]==0.0))
{
PlayerInfo[playerid][Float:pPos_x] = 1684.9;
PlayerInfo[playerid][Float:pPos_y] = -2244.5;
PlayerInfo[playerid][Float:pPos_z] = 13.5;
}
if(Spectate[playerid] != 255)
{
PlayerInfo[playerid][Float:pPos_x] = Unspec[playerid][sPx];
PlayerInfo[playerid][Float:pPos_y] = Unspec[playerid][sPy];
PlayerInfo[playerid][Float:pPos_z] = Unspec[playerid][sPz];
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
}


Lines 1890 -- 1894:

SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][Float:pPos_x], PlayerInfo[playerid][Float:pPos_y], PlayerInfo[playerid][Float:pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][Float:pPos_x] = 2246.6;
PlayerInfo[playerid][Float:pPos_y] = -1161.9;
PlayerInfo[playerid][Float:pPos_z] = 1029.7;


Lines 2379 -- 2381:

INI_WriteInt(File,"Pos_x",PlayerInfo[playerid][Float:pPos_x]);
INI_WriteInt(File,"Pos_y",PlayerInfo[playerid][Float:pPos_y]);
INI_WriteInt(File,"Pos_z",PlayerInfo[playerid][Float:pPos_z]);


Lines 2596 -- 2598:

INI_WriteInt(File,"Pos_x",PlayerInfo[playerid][Float:pPos_x]);
INI_WriteInt(File,"Pos_y",PlayerInfo[playerid][Float:pPos_y]);
INI_WriteInt(File,"Pos_z",PlayerInfo[playerid][Float:pPos_z]);


Also, yes, I have included it in a enum pInfo:

enum pInfo
{
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
};
new PlayerInfo[MAX_PLAYERS][pInfo];

Thanks and I'd appreciate any help.

ThePhenix
24/07/2013, 03:48 PM
Read YSI_ini wiki properly as you're handling with floats..

Blast3r
24/07/2013, 03:48 PM
It should be Ini_WriteFloat for floats not Ini_WriteInt, example:

INI_WriteFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]);

[XST]O_x
24/07/2013, 03:48 PM
INI_Float("Pos_x",PlayerInfo[playerid][pPos_x]);
INI_Float("Pos_y",PlayerInfo[playerid][pPos_y]);
INI_Float("Pos_z",PlayerInfo[playerid][pPos_z]);



if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
{
PlayerInfo[playerid][pPos_x] = 1684.9;
PlayerInfo[playerid][pPos_y] = -2244.5;
PlayerInfo[playerid][pPos_z] = 13.5;
}
if(Spectate[playerid] != 255)
{
PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
}



SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
PlayerInfo[playerid][pLevel] = 1;
PlayerInfo[playerid][pPos_x] = 2246.6;
PlayerInfo[playerid][pPos_y] = -1161.9;
PlayerInfo[playerid][pPos_z] = 1029.7;



INI_WriteFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]);
INI_WriteFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]);
INI_WriteFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]);


INI_WriteFloat(File,"Pos_x",PlayerInfo[playerid][pPos_x]);
INI_WriteFloat(File,"Pos_y",PlayerInfo[playerid][pPos_y]);
INI_WriteFloat(File,"Pos_z",PlayerInfo[playerid][pPos_z]);

DanishHaq
24/07/2013, 04:29 PM
Thanks guys, all your answers helped. You've all received a +1 reputation point.