warning 213: tag mismatch
#1

help, warning 213: tag mismatch
how to fix?

Код:
CMD:duty(playerid, params[])
{
	new Text3D: label;
	if(pInfo[playerid][pAdmin] < 1) return SCM(playerid, COLOR_RED, "[Server]: Nem hasznбlhatod a parancsot!");
	new string[128];
    if(pInfo[playerid][pDuty] == 0)
    {
	    format(string, sizeof(string), "[Server-ADMIN]: %s szolgбlatba van.", GetName(playerid));
	    SCMToAll(COLOR_PINK, string);
	    SetPlayerHealth(playerid, 10000);
	    SetPlayerArmour(playerid, 10000);
	    pInfo[playerid][pDuty] = 1;
    	label = Create3DTextLabel("Admin szolgбlatban", COLOR_PINK, 30.0, 40.0, 50.0, 40.0, 0);
 		Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
	}
	else
	{
 	if(pInfo[playerid][pDuty] == 1)
 	{
	    format(string, sizeof(string), "[Server-ADMIN]: %s kilйpett a szolgбlatbуl.", GetName(playerid));
	    SCMToAll(COLOR_PINK, string);
	    SetPlayerHealth(playerid, 100);
	    SetPlayerArmour(playerid, 100);
	    pInfo[playerid][pDuty] = 0;
  	    DeletePlayer3DTextLabel(playerid, label);  <<< WARNING 
	}
	}
	return 1;
}
Reply
#2

Hi,

Can you show me the line?
Reply
#3

EDIT: My bad look at Konstantinos' reply
Reply
#4

Delete3DTextLabel(label);
try this one
Reply
#5

change "new Text3D: label;" to "new PlayerText3D: label;"
Reply
#6

Код:
new PlayerText3D: label;
warning 213: tag mismatch>>	label = Create3DTextLabel("Admin szolgбlatban", COLOR_PINK, 30.0, 40.0, 50.0, 40.0, 0);
warning 213: tag mismatch>> 	Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.7);
Reply
#7

You just ignored the solution..

Quote:
Originally Posted by Battlezone
Посмотреть сообщение
Delete3DTextLabel(label);
try this one
It's global 3D labels so you should've used "Delete3DTextLabel" (with Text3D tag) instead of "DeletePlayer3DTextLabel".

In case you wanted to use per-player 3D label, you had to use the correct functions.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)