SA-MP Forums Archive
[Help] Tag Mismatch error. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [Help] Tag Mismatch error. (/showthread.php?tid=164612)



[Help] Tag Mismatch error. - Ace_Menace - 01.08.2010

I get the following error on the lines marked:

Код:
warning 213: tag mismatch
pawn Код:
public UpdatePlayerPos(playerid)
{
    new PInterior;
    PInterior = GetPlayerInterior(playerid);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid,x,y,z);
    PlayerShit[playerid][PLAYER_INT] = PInterior;
    PlayerShit[playerid][PLAYER_MYX] = x; //here
    PlayerShit[playerid][PLAYER_MYY] = y; //here
    PlayerShit[playerid][PLAYER_MYZ] = z; //and here
    return 1;
}



Re: [Help] Tag Mismatch error. - Dudits - 01.08.2010

pawn Код:
enum pInfo
{
    Float:PLAYER_MYZ,
    Float:PLAYER_MYZ,
    Float:PLAYER_MYZ
}
new PlayerShit[MAX_PLAYERS][pInfo];



Re: [Help] Tag Mismatch error. - Guest3598475934857938411 - 01.08.2010

Be more clear give us the line no the 5 lines or atleast give us the warrning line and things.


Re: [Help] Tag Mismatch error. - iggy1 - 01.08.2010

pawn Код:
PlayerShit[playerid][PLAYER_MYX]
It looks like that is an int and your trying to save a float value to it. Same with the others.

Edit: missed second post.