Tag mismatch
#1

Hello everyone ! , I have a little problem with this code :
PHP код:
    if(!strcmp(cmd,"/viptag",true))
    {
        new 
Text3D:tag Create3DTextLabel("V.I.P",COLOR_GOLD0.0,40,20,0,1);
        if(
PlayerInfo[playerid][pVIP] >=1)
        {
            new 
tagvar 0;
            if(
tagvar == 0)
            {
                
Attach3DTextLabelToPlayer(tag,playerid0,0,1);
                
tagvar 1;
            }
            else if(
tagvar == 1)
            {
                
DeletePlayer3DTextLabel(playerid,tag); // Line 1594 
                
tagvar 0;
            }
        }
        else {
SendClientMessage(playeridCOLOR_GREY"You are not a VIP !");}
    } 
Errors:
PHP код:
...\SAMP\gamemodes\RPG.pwn(1594) : warning 213tag mismatch 
What did I do wrong ?
Reply
#2

You created 3DTextLabel, not Player3DTextLabel, so you need to use 'Delete3DTextLabel' instead of 'DeletePlayer3DTextLabel'.
Reply
#3

Quote:
Originally Posted by Scottas
Посмотреть сообщение
You created 3DTextLabel, not Player3DTextLabel, so you need to use 'Delete3DTextLabel' instead of 'DeletePlayer3DTextLabel'.
Ooo...Thank you very much, I didn't saw that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)