SA-MP Forums Archive
how to solve tag mismatch warning? - 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: how to solve tag mismatch warning? (/showthread.php?tid=458938)



how to solve tag mismatch warning? - Champ - 19.08.2013

Here is the line ↓
pawn Код:
DeletePlayer3DTextLabel(playerid,VIPtag);



Re: how to solve tag mismatch warning? - playbox12 - 19.08.2013

Show the definition of VIPtag?


Re: how to solve tag mismatch warning? - Edix - 19.08.2013

You need to have new Text3D:VIPtag;


Re: how to solve tag mismatch warning? - Champ - 19.08.2013

here

pawn Код:
new Text3D:VIPtag;
    if(GetPVarInt(playerid, "VIP") > 0)
    {
        VIPtag = Create3DTextLabel("VIP", COLOR_Green, 20.0, 40.0, 50.0, 40.0, 0);
        Attach3DTextLabelToPlayer(VIPtag, playerid, 0.0, 0.0, 0.7);
    }
    else
    {
        DeletePlayer3DTextLabel(playerid,VIPtag);
    }



Re: how to solve tag mismatch warning? - Edix - 19.08.2013

You need to use : https://sampwiki.blast.hk/wiki/Delete3DTextLabel instead of DeletePlayer..


Re: how to solve tag mismatch warning? - playbox12 - 19.08.2013

Quote:
Originally Posted by Edix
Посмотреть сообщение
You need to use : https://sampwiki.blast.hk/wiki/Delete3DTextLabel instead of DeletePlayer..
https://sampwiki.blast.hk/wiki/DeletePlayer3DTextLabel


Re: how to solve tag mismatch warning? - Champ - 19.08.2013

I used delete3dtextlabel but it is getting bugged. the player who is not vip also getting vip tag on his head.