[HELP] Attach3Dtext to a Player[Simple Question]
#1

hey , i have define
pawn Код:
new Text3D:VIP[MAX_PLAYERS];
Once , so the question is simple : Can this new work also if i use it 4 or 5 times in my GM to create textdraw ?
Like :
pawn Код:
switch(pInfo[playerid][VipLevel])
    {
        case 0:
        {
            SendClientMessage(playerid, COLOR_LIGHTGREEN, " You are a Normal player , you don't have any privilages.");
        }
        case 1:
        {
            VIP[playerid] = Create3DTextLabel("Silver VIP", COLOR_GREY, 0.0, 0.0, 0.0, 50.0, 0, 0);
            Attach3DTextLabelToPlayer(VIP[playerid], playerid, 0.0, 0.0, 0.0);
        }
        case 2:
        {
            VIP[playerid] = Create3DTextLabel("Gold VIP", COLOR_GREY, 0.0, 0.0, 0.0, 50.0, 0, 0);// i use it in the second time
            Attach3DTextLabelToPlayer(VIP[playerid], playerid, 0.0, 0.0, 0.0);}
         }
                                               /*  .
                                                .
                                                 .      //X times
                                                  .  */
Reply
#2

That variable is assigned to Textlabel. If you destroy that label, yes, you can use it again to create another label. If you have one label assigned to that variable and assigned new label to the same first one will lost that "value".
Reply
#3

ok the function is destroy3Dtextlabel ? and where to put it ...?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)