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=526257)
warning 213: tag mismatch -
Slicebook - 16.07.2014
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;
}
Re: warning 213: tag mismatch -
Foraysen - 16.07.2014
Hi,
Can you show me the line?
Re: warning 213: tag mismatch -
Blast3r - 16.07.2014
EDIT: My bad look at Konstantinos' reply
Re: warning 213: tag mismatch -
Battlezone - 16.07.2014
Delete3DTextLabel(label);
try this one
Re: warning 213: tag mismatch -
BlackM - 16.07.2014
change "new Text3D: label;" to "new PlayerText3D: label;"
Re: warning 213: tag mismatch -
Slicebook - 16.07.2014
Код:
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);
Re: warning 213: tag mismatch -
Konstantinos - 16.07.2014
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.