warning: 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: warning: tag mismatch (
/showthread.php?tid=545298)
warning: tag mismatch -
BpX - 07.11.2014
Hello,
pawn Код:
enum gHouses
{
//other stuff
Label,
}
new House[MAX_HOUSES][gHouses];
pawn Код:
public OnGameModeInit()
{
House[1][Label] = Create3DTextLabel("House for sale!", COLOUR_RED, 2186.0200,1113.7500,12.6484, 40.0, 0, 0); //WARNING HERE
return 1;
}
pawn Код:
public OnPlayerBuyHouse(playerid, houseid)
{
Update3DTextLabelText(House[houseid][Label], COLOUR_WHITE, "House Not For Sale!"); //WARNING HERE
return 1;
}
This code gives me "Tag Mismatch" warnings. I guess using enumerations isn't a good idea... What is a better way to approach this problem?
Thanks in advance!
Re: warning: tag mismatch -
Sabur - 07.11.2014
Add a Text3D before the Label.
Text3D:Label.
Re: warning: tag mismatch -
BpX - 07.11.2014
Oh wow... I didn't know that I had to do that.
Thank you!