vehicle textlabel doesn't show - 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: vehicle textlabel doesn't show (
/showthread.php?tid=439554)
vehicle textlabel doesn't show -
Face9000 - 25.05.2013
Ok so, i've created an admin vehicle and added a textlabel on it:
pawn Код:
new Text3D:ProtLabel[MAX_VEHICLES];
new A69Prot;
Ongamemodeinit:
pawn Код:
ProtLabel[A69Prot] = Create3DTextLabel("Area 69 Prototype", COLOR_CON_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
A69Prot = AddStaticVehicle(428,215.8315,1860.0304,13.2654,1.1393,0,5);
Attach3DTextLabelToVehicle(ProtLabel[A69Prot],A69Prot, 0.0, 0.0, 0.0);
But for some reason the textlabel on that vehicle doesn't show. What am i doing wrong?
Re: vehicle textlabel doesn't show -
CJay9209 - 26.05.2013
very simple - ur creating the vehicle second - u shud add the vehicle first THEN create and attach the label:
pawn Код:
A69Prot = CreateVehicle(428,215.8315,1860.0304,13.2654,1.1393,0,5);
ProtLabel[A69Prot] = Create3DTextLabel("Area 69 Prototype", COLOR_CON_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(ProtLabel[A69Prot],A69Prot, 0.0, 0.0, 0.0);
Re: vehicle textlabel doesn't show -
Face9000 - 26.05.2013
Oh, thanks.
Re: vehicle textlabel doesn't show -
CJay9209 - 26.05.2013
Glad I could help