vip tag problem
#1

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

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.
Reply
#3

ohh yeah got it
ty for the help +1
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)