SA-MP Forums Archive
Tag mismatch. (REP+) - 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: Tag mismatch. (REP+) (/showthread.php?tid=312247)



Tag mismatch. (REP+) - GangsTa_ - 20.01.2012

Here's the error:

Код:
E:\..\gamemodes\...pwn(14714) : warning 213: tag mismatch
Line 14714:

pawn Код:
Delete3DTextLabel(Plantac[playerid][plant]);
What's wrong with it? Not really sure.


Re: Tag mismatch. (REP+) - Vince - 20.01.2012

It means that your variable 'Plantac[playerid][plant]' does not have the tag Text3D:.


Re: Tag mismatch. (REP+) - GangsTa_ - 20.01.2012

Added the tag, still the same warnings.


Re: Tag mismatch. (REP+) - =WoR=Varth - 20.01.2012

pawn Код:
new Text3D:Plantac[MAX_PLAYERS][MAX_PLANT]
Like that?


Re: Tag mismatch. (REP+) - Tannz0rz - 20.01.2012

Posting your enumeration as well as your declaration of Plantac would be of great help.


Re: Tag mismatch. (REP+) - GangsTa_ - 20.01.2012

pawn Код:
enum Plants
{
    plantid,
    plant,
    plantready,
    Float:plantX,
    Float:plantY,
    Float:plantZ,
};
new Text3D:Plantac[MAX_PLAYERS][Plants];



Re: Tag mismatch. (REP+) - Ash. - 20.01.2012

Quote:
Originally Posted by GangsTa_
Посмотреть сообщение
pawn Код:
enum Plants
{
    plantid,
    plant,
    plantready,
    Float:plantX,
    Float:plantY,
    Float:plantZ,
};
new Text3D:Plantac[MAX_PLAYERS][Plants];
Remove (yes, Remove) the 'Text3D:' tag from the initialisation line, and instead place the 'Text3D:' tag in front of the word 'plant' (as I assume this is the enum tag in which you store the 3D Text Label).


Re: Tag mismatch. (REP+) - Tanush123 - 20.01.2012

pawn Код:
enum Plants
{
    plantid,
    Text3D:plant,
    plantready,
    Float:plantX,
    Float:plantY,
    Float:plantZ,
};
new Plantac[MAX_PLAYERS][Plants];



Re: Tag mismatch. (REP+) - GangsTa_ - 20.01.2012

Remained 2 warnings:

Plantac[playerid][plant] = 0;
Plantac[i][plant] = 0;

These are the set variables. What to do next?

(The system is not mine)


Re: Tag mismatch. (REP+) - sabretur - 20.01.2012

What warnings are remained?