warning 213: tag mismatch - one line only
#1

(37083) : warning 213: tag mismatch

Here is the line:
Код:
public OnPlayerUnPause(playerid)
{
    DeletePlayer3DTextLabel(playerid, AfkLabel[playerid]); //this is the line with warning
    return 1;
}
Reply
#2

Is AfkLabel assigned to Create3DTextLabel? Because if it's not, then that's why you get the error.
Please show where you assign AfkLabel[playerid].
Reply
#3

AfkLabel[playerid] = Create3DTextLabel("OVAJ IGRAČ \n JE PAUZIRAN",0x2A6CD699,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(AfkLabel[playerid], playerid, 0,0,0);
Reply
#4

Quote:
Originally Posted by Saddin
Посмотреть сообщение
AfkLabel[playerid] = Create3DTextLabel("OVAJ IGRAČ \n JE PAUZIRAN",0x2A6CD699,0,0,0,50,-1,1);
Attach3DTextLabelToPlayer(AfkLabel[playerid], playerid, 0,0,0);
I don't think that little bit of code will help someone figure out your problem, you have anymore instances of your AfkLabel anywhere in your code?
Reply
#5

Код:
new Text3D:AfkLabel[MAX_PLAYERS];
Код:
public OnPlayerPause(playerid)
{
    AfkLabel[playerid] = Create3DTextLabel("OVAJ IGRAČ \n JE PAUZIRAN",0x2A6CD699,0,0,0,50,-1,1);
	Attach3DTextLabelToPlayer(AfkLabel[playerid], playerid, 0,0,0);
    return 1;
}
public OnPlayerUnPause(playerid)
{
    DeletePlayer3DTextLabel(playerid, AfkLabel[playerid]);
    return 1;
}
This is all.
Reply
#6

This is because, you are creating a normal 3D Text label, but trying to remove it with a Player 3d text label..
change the code to this
pawn Код:
Delete3DTextLabel(AfkLabel[playerid]);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)