Delete3DText not work
#1

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    new next;
    new WTF = GetPlayerVehicleID(playerid);
    if(L1[playerid]== 1)
    {
        switch(PCP[playerid])
        {
            case 0:
            {
                    if(WTF == 12) next = 0;
                    if(WTF == 13) next = 1;
                    if(WTF == 14) next = 2;
                    if(WTF == 15) next = 3;
                    if(WTF == 16) next = 4;
                    if(WTF == 17) next = 5;
                    if(WTF == 18) next = 6;
                    if(WTF == 19) next = 7;
                    if(WTF == 20) next = 8;
                    if(WTF == 21) next = 9;
                    if(WTF == 22) next = 10;
                    if(WTF == 23) next = 11;
                    Delete3DTextLabel(p2[next]); //<<--- Not work
How to fix it?
Reply
#2

Help guys
Reply
#3

Quote:
Originally Posted by whitedragon
Посмотреть сообщение
Help guys
Let's see how you created the 3d text in the first place.
Reply
#4

They Attached to Vehicle
Reply
#5

pawn Код:
new p2[15];
    p2[0] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[1] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[2] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[3] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[4] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[5] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[6] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[7] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[8] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[9] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[10] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[11] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[12] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[13] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
    p2[14] = Create3DTextLabel("LV",0x00BF00FF,0.0, 0.0,0.0,30.0,0);
vid = AddStaticVehicleEx(); //Tanker
    Attach3DTextLabelToVehicle(p2[0], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Tanker
    Attach3DTextLabelToVehicle(p2[1], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Tanker
    Attach3DTextLabelToVehicle(p2[2], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Tanker
    Attach3DTextLabelToVehicle(p2[3], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Bus
    Attach3DTextLabelToVehicle(p2[4], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Bus
    Attach3DTextLabelToVehicle(p2[5], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Bus
    Attach3DTextLabelToVehicle(p2[6], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Bus
    Attach3DTextLabelToVehicle(p2[7], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Coach
    Attach3DTextLabelToVehicle(p2[8], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Coach
    Attach3DTextLabelToVehicle(p2[9], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Coach
    Attach3DTextLabelToVehicle(p2[10], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Coach
    Attach3DTextLabelToVehicle(p2[11], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Utility
    Attach3DTextLabelToVehicle(p2[12], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Utility
    Attach3DTextLabelToVehicle(p2[13], vid, 0.0, 0.0, 3.0);
    vid = AddStaticVehicleEx(); //Tow Truck
    Attach3DTextLabelToVehicle(p2[14], vid, 0.0, 0.0, 3.0);
Reply
#6

p2[] isn't a global variable, make it global by creating it outside of the callback
Reply
#7

it is global
and its like this:'
pawn Код:
new Text3D:p2[15];
Reply
#8

UP!!! I need help guys!!
Reply
#9

If fail if not work correct but how make it correct?
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)