SA-MP Forums Archive
vip tag problem - 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: vip tag problem (/showthread.php?tid=497814)



vip tag problem - iThePunisher - 28.02.2014

hello.
i have a problem with the /viptag command
when i go in game i type /viptag but players cant see my tag up to the head ...
do anyone fix the problem that i made here?

pawn Код:
CMD:viptag(playerid, params[])
{
    new string[64];
    new Text3D:label = Create3DTextLabel(string, COLOR_VIOLET, 30.0, 40.0, 50.0, 40.0, 0);
    if(PlayerInfo[playerid][pVip] >=1 )
    {
        if(viptag[playerid] == 0)
        {
            viptag[playerid] = 1;
            format(string,sizeof(string), "%s",GetVipLvlName(playerid));
            GameTextForPlayer(playerid, "~p~VIP Tag Activated.",3000,5);
            Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.3);
        }
        else
        {
            viptag[playerid] = 0;
            DeletePlayer3DTextLabel(playerid, PlayerText3D:label);
            GameTextForPlayer(playerid, "~r~ VIP Tag Deactivated.",3000,5);
        }
    }
    else return SendClientMessage(playerid,COLOR_GREY, ERROR);
    return 1;
}



Re: vip tag problem - Kirollos - 28.02.2014

pawn Код:
new string[64];
new Text3D:label = Create3DTextLabel(string, COLOR_VIOLET, 30.0, 40.0, 50.0, 40.0, 0);
You have declared the string and then created the 3D Text Label when the string is still empty.


Re: vip tag problem - iThePunisher - 28.02.2014

ohh yeah got it
ty for the help +1