31.01.2017, 05:31
The heck, this tag mismatch won't disappear! i tried wiki-samp and didn't helped me so i came to samp forums!
i was trying to attach 3d label to vip if he spawned as vip and if wasn't a vip so the 3d label will disappear but got warnings...
Code:
Warnings:
i was trying to attach 3d label to vip if he spawned as vip and if wasn't a vip so the 3d label will disappear but got warnings...
Code:
PHP код:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pVIP] == 1)
{
bronzelabel[playerid] = Create3DTextLabel("Bronze {00f88a}V.I.P", 0xF47A00FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(bronzelabel[playerid], playerid, 0.0, 0.0, 0.7);
}
else
{
146. DeletePlayer3DTextLabel(playerid, bronzelabel[playerid]);
}
if(PlayerInfo[playerid][pVIP] == 2)
{
silverlabel[playerid] = Create3DTextLabel("Silver {00f88a}V.I.P", 0x808080FF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(silverlabel[playerid], playerid, 0.0, 0.0, 0.7);
}
else
{
155. DeletePlayer3DTextLabel(playerid, silverlabel[playerid]);
}
if(PlayerInfo[playerid][pVIP] == 3)
{
goldlabel[playerid] = Create3DTextLabel("Gold {00f88a}V.I.P", 0xF5AE0AFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(goldlabel[playerid], playerid, 0.0, 0.0, 0.7);
}
else
{
164. DeletePlayer3DTextLabel(playerid, goldlabel[playerid]);
}
if(PlayerInfo[playerid][pVIP] == 4)
{
diamondlabel[playerid] = Create3DTextLabel("Diamond {00f88a}V.I.P", 0x00FFFFFF, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(diamondlabel[playerid], playerid, 0.0, 0.0, 0.7);
}
else
{
173. DeletePlayer3DTextLabel(playerid, diamondlabel[playerid]);
}
return 1;
}
Warnings:
PHP код:
C:\Users\Admin\Desktop\SAMP - Releases\[GameMode]UltimateX - Stunt-Freeroam-DM-Fallout\filterscripts\V.I.P.pwn(146) : warning 213: tag mismatch
C:\Users\Admin\Desktop\SAMP - Releases\[GameMode]UltimateX - Stunt-Freeroam-DM-Fallout\filterscripts\V.I.P.pwn(155) : warning 213: tag mismatch
C:\Users\Admin\Desktop\SAMP - Releases\[GameMode]UltimateX - Stunt-Freeroam-DM-Fallout\filterscripts\V.I.P.pwn(164) : warning 213: tag mismatch
C:\Users\Admin\Desktop\SAMP - Releases\[GameMode]UltimateX - Stunt-Freeroam-DM-Fallout\filterscripts\V.I.P.pwn(173) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Warnings.