Warning 213: tag mismatch -
RedCounty - 04.05.2016
Don't have a clue why this is happening. Here is the variable inside of the enum:
pawn Код:
Text3D:PlantLabel[MAX_WEED_PLANTS],
Here is line 7718:
pawn Код:
DestroyDynamic3DTextLabel(WeedData[IsInHouseID[playerid]][PlantLabel][w]);
Here is line 81657:
pawn Код:
WeedData[houseid][PlantLabel][slotid] = CreateDynamic3DTextLabel(string, COLOUR_WHITE, x, y, z, 2.5, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, houseid, -1, forwho, 10.0);
Here is line 81661:
pawn Код:
UpdateDynamic3DTextLabelText(WeedData[houseid][PlantLabel][slotid], COLOUR_WHITE, string);
Here is line 84871:
pawn Код:
DestroyDynamic3DTextLabel(WeedData[IsInHouseID[playerid]][PlantLabel][w]);
Here is line 81508:
pawn Код:
DestroyDynamic3DTextLabel(WeedData[hid][PlantLabel][w]);
Any idea?
Re: Warning 213: tag mismatch -
Nin9r - 04.05.2016
Show me the "WeedData" enum
If you are using
WeedData[a][b] you have to use it like :
DestroyDynamic3DTextLabel(WeedData[hid][PlantLabel[w]]);
not:
DestroyDynamic3DTextLabel(WeedData[hid][PlantLabel][w]);
the same to all of them..
Re: Warning 213: tag mismatch -
RedCounty - 04.05.2016
This is the enum:
pawn Код:
enum WEED_DATA
{
PlantGrowth,
PlantWater,
Text3D:PlantLabel[MAX_WEED_PLANTS],
PlantPotObj,
HouseSQLID,
PlantSQLID
};
Re: Warning 213: tag mismatch -
Nin9r - 04.05.2016
CTRL+F and search ' WeedData[ '. Show me that line. Maybe, it is not defined as a 3dtext.
PS : Did you try to change what did i say?
Re: Warning 213: tag mismatch -
RedCounty - 04.05.2016
pawn Код:
new WeedData[MAX_HOUSES][WEED_DATA][MAX_WEED_PLANTS];
That?
Re: Warning 213: tag mismatch -
jlalt - 04.05.2016
Quote:
Originally Posted by RedCounty
pawn Код:
new WeedData[MAX_HOUSES][WEED_DATA][MAX_WEED_PLANTS];
That?
|
make it
PHP код:
new Text3D:WeedData[MAX_HOUSES][WEED_DATA][MAX_WEED_PLANTS];
Re: Warning 213: tag mismatch -
RedCounty - 04.05.2016
But, there's other items in the enum which aren't text labels. Will it still work?
Edit: Tried it, just gave me LOADS of warnings.
Re: Warning 213: tag mismatch -
RedCounty - 04.05.2016
Fixed this, thanks for all of your help.