SA-MP Forums Archive
Tag Mismatch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tag Mismatch (/showthread.php?tid=373503)



Tag Mismatch - Why - 30.08.2012

Hello. I am making a system to save the character, and I created a stock for that.
However, I am getting a few warnings; Tag Mismatch.
Код:
C:\Users\Christian\Desktop\RP\gamemodes\new.pwn(119) : warning 213: tag mismatch
C:\Users\Christian\Desktop\RP\gamemodes\new.pwn(120) : warning 213: tag mismatch
C:\Users\Christian\Desktop\RP\gamemodes\new.pwn(121) : warning 213: tag mismatch
C:\Users\Christian\Desktop\RP\gamemodes\new.pwn(131) : warning 213: tag mismatch
C:\Users\Christian\Desktop\RP\gamemodes\new.pwn(131) : warning 213: tag mismatch
C:\Users\Christian\Desktop\RP\gamemodes\new.pwn(131) : warning 213: tag mismatch
C:\Users\Christian\Desktop\RP\gamemodes\new.pwn(142) : warning 213: tag mismatch
C:\Users\Christian\Desktop\RP\gamemodes\new.pwn(143) : warning 213: tag mismatch
C:\Users\Christian\Desktop\RP\gamemodes\new.pwn(144) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


9 Warnings.
pawn Код:
// Stock
stock SaveChar(playerid)
{
    new float:PoX, float:PoY, float:PoZ;
    GetPlayerPos(playerid, PoX, PoY, PoZ);
    new INI:File = INI_Open(UserPath(playerid));
    INI_SetTag(File,"data");
    INI_WriteInt(File,"Cash",PlayerInfo[playerid][pCash]);
    INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
    INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    INI_WriteInt(File,"Faction",PlayerInfo[playerid][pFaction]);
    INI_WriteInt(File,"FactionRank",PlayerInfo[playerid][pFacRank]);
    INI_WriteInt(File,"FactionDivision",PlayerInfo[playerid][pFacDiv]);
    INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
    INI_WriteFloat(File,"PosX",PoX);// 142
    INI_WriteFloat(File,"PosY",PoY);// 143
    INI_WriteFloat(File,"PosZ",PoZ);// 144
    INI_WriteInt(File,"Level",PlayerInfo[playerid][pLevel]);
    INI_WriteInt(File,"Bank",PlayerInfo[playerid][pLevel]);
    INI_Close(File);
}
I didn't show all of the warnings, as I am sure if you show me what's wrong here, I can fix the rest.


Re: Tag Mismatch - HuSs3n - 30.08.2012

Float: not float: