Warning 213: tag mismatch
#1

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

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..
Reply
#3

This is the enum:

pawn Код:
enum WEED_DATA
{
    PlantGrowth,
    PlantWater,
    Text3D:PlantLabel[MAX_WEED_PLANTS],
    PlantPotObj,
    HouseSQLID,
    PlantSQLID
};
Reply
#4

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?
Reply
#5

pawn Код:
new WeedData[MAX_HOUSES][WEED_DATA][MAX_WEED_PLANTS];
That?
Reply
#6

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]; 
Reply
#7

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.
Reply
#8

Fixed this, thanks for all of your help.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)