vehicle textlabel doesn't show
#1

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?
Reply
#2

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);
Reply
#3

Oh, thanks.
Reply
#4

Glad I could help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)