SA-MP Forums Archive
Delete3DText not work - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Delete3DText not work (/showthread.php?tid=171637)



Delete3DText not work - whitedragon - 27.08.2010

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?


Re: Delete3DText not work - whitedragon - 27.08.2010

Help guys


Re: Delete3DText not work - Cameltoe - 27.08.2010

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


Re: Delete3DText not work - whitedragon - 27.08.2010

They Attached to Vehicle


Re: Delete3DText not work - whitedragon - 27.08.2010

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);



Re: Delete3DText not work - Hiddos - 27.08.2010

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


Re: Delete3DText not work - whitedragon - 27.08.2010

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



Re: Delete3DText not work - whitedragon - 27.08.2010

UP!!! I need help guys!!


Re: Delete3DText not work - whitedragon - 27.08.2010

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