SA-MP Forums Archive
Need some help with 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: Need some help with tag mismatch... (/showthread.php?tid=569212)



Need some help with tag mismatch... - Scrillex - 28.03.2015

Need some help with tag mismatch...
ENUM:
pawn Код:
pindex,
    pmodelid,
    pboneid,
    Float:pfOffsetX,
    Float:pfOffsetY,
    Float:pfOffsetZ,
    Float:pfRotX,
    Float:pfRotY,
    Float:pfRotZ,
    Float:pfScaleX,
    Float:pfScaleY,
    Float:pfScaleZ
ERROR:
pawn Код:
(1641 -- 1642) : warning 213: tag mismatch
(1641 -- 1643) : warning 213: tag mismatch
(1641 -- 1644) : warning 213: tag mismatch
Script:
pawn Код:
SetPlayerAttachedObject(playerid,//warning line
    INT:PlayerInfo[playerid][pindex],//warning line
    INT:PlayerInfo[playerid][pmodelid],//warning line
    INT:PlayerInfo[playerid][pboneid],//warning line
    Float:PlayerInfo[playerid][pfOffsetX],
    Float:PlayerInfo[playerid][pfOffsetY],
    Float:PlayerInfo[playerid][pfOffsetZ],
    Float:PlayerInfo[playerid][pfRotX],
    Float:PlayerInfo[playerid][pfRotY],
    Float:PlayerInfo[playerid][pfRotZ],
    Float:PlayerInfo[playerid][pfScaleX],
    Float:PlayerInfo[playerid][pfScaleY],
    Float:PlayerInfo[playerid][pfScaleZ]);
Thank you for your help.. With best regards Scrillex.


Re: Need some help with tag mismatch... - Vince - 28.03.2015

  1. INT: is not a predefined tag. Integer variables have no tag.
  2. You do not need to include a tag anywhere but in the declaration, unless you want to override it for some reason.