07.11.2014, 16:26
Hello,
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!
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;
}
Thanks in advance!