how to solve tag mismatch warning?
#1

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

Show the definition of VIPtag?
Reply
#3

You need to have new Text3D:VIPtag;
Reply
#4

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);
    }
Reply
#5

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)