SA-MP Forums Archive
Warning 213: 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 213: tag mismatch (/showthread.php?tid=606435)



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.