SA-MP Forums Archive
Tag mismatch on a variable? - 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 on a variable? (/showthread.php?tid=378769)



Tag mismatch on a variable? - Deal-or-die - 19.09.2012

Hey ahh, I am getting a tag mismatch warning on my clear menu variable

error
Код:
warning 213: tag mismatch
code
pawn Код:
stock ClearHouseMenu(playerid)
{
    House[playerid][hLabelID] = 0;// <- warning 213: tag mismatch
}



Re: Tag mismatch on a variable? - XtremeR - 19.09.2012

should work.. happened to me today..
pawn Код:
stock ClearHouseMenu(playerid)
{
    House[playerid][hLabelID] == 0;
}



Re: Tag mismatch on a variable? - mkr - 19.09.2012

Assuming that's a 3D text label, something like

pawn Код:
House[playerid][hLabelID] = Text3D:INVALID_3DTEXT_ID;
might work. If my assumption is wrong, please post your House enum.


Re: Tag mismatch on a variable? - FalconX - 19.09.2012

Quote:
Originally Posted by XtremeR
Посмотреть сообщение
should work.. happened to me today..
pawn Код:
stock ClearHouseMenu(playerid)
{
    House[playerid][hLabelID] == 0;
}
Do you have "hLabelID" in your enum? show your enum.


Re: Tag mismatch on a variable? - Deal-or-die - 19.09.2012

Ahh wicked, Once again mkr saves the day haha.

Cheers mate.

Also thanks for everyone else too, greatly appreciated.