SA-MP Forums Archive
3D labels not working - 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: 3D labels not working (/showthread.php?tid=321748)



3D labels not working - ninjahippie - 28.02.2012

So I was playing around with 3D labels but for some reason when I try add a label to a car it works fine. But as soon as I add one just randomly somewhere it adds that one to the car and doesn't show the other one. Help anyone

Sorry I'm only new to pawn


Код:
public OnGameModeInit ( )
{
   Create3DTextLabel("I'm at the coordinates:\n30.0, 40.0, 50.0", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0);


    new vehicle_id, Text3D:vehicle3Dtext;
    //Creating TextLabel
    vehicle3Dtext = Create3DTextLabel( "Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    //Creating the Vehicle
    vehicle_id = CreateVehicle( 510, 0.0. 0.0, 15.0, 5, 0, 120 );
    //Attaching Text Label To Vehicle
    Attach3DTextLabelToVehicle( vehicle3Dtext, vehicle_id, 0.0, 0.0, 2.0);
    return 1;
}



Re: 3D labels not working - Walsh - 28.02.2012

Are you getting any undefined symbol errors?

EDIT: Nevermind, that was stupid.

//===============================================

So you said you got it to work, then could you go more into detail what you do to make it not work?