Tag mismatch. (REP+)
#1

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

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

Added the tag, still the same warnings.
Reply
#4

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

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

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

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

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

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)
Reply
#10

What warnings are remained?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)