warning: tag mismatch
#1

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!
Reply
#2

Add a Text3D before the Label.

Text3D:Label.
Reply
#3

Oh wow... I didn't know that I had to do that.

Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)