SA-MP Forums Archive
Small help with 3dLabels - 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: Small help with 3dLabels (/showthread.php?tid=185903)



Small help with 3dLabels - Tee - 26.10.2010

I made a 3d label but it only shows if i switched places with truck1 and text1:

This is when i dont work.
pawn Код:
text1 = Create3DTextLabel("Trucking Mission", 0xFFFFFFFF, 2855.8965,916.0118,11.4402, 50.0, 0, 1 );
    truck1 = CreateVehicle(403,2855.8965,916.0118,11.4402,82.7324,0,255,900);
    Attach3DTextLabelToVehicle(text1,truck1,2855.8965,916.0118,11.4402);
This is when it works, but with this one, the label is not attached to the vehicle/

pawn Код:
text1 = Create3DTextLabel("Trucking Mission", 0xFFFFFFFF, 2855.8965,916.0118,11.4402, 50.0, 0, 1 );
    truck1 = CreateVehicle(403,2855.8965,916.0118,11.4402,82.7324,0,255,900);
    Attach3DTextLabelToVehicle(truck1,text1,2855.8965,916.0118,11.4402);



Re: Small help with 3dLabels - Sascha - 26.10.2010

Quote:
Originally Posted by Tee
Посмотреть сообщение
I made a 3d label but it only shows if i switched places with truck1 and text1:

This is when i dont work.
pawn Код:
text1 = Create3DTextLabel("Trucking Mission", 0xFFFFFFFF, 2855.8965,916.0118,11.4402, 50.0, 0, 1 );
    truck1 = CreateVehicle(403,2855.8965,916.0118,11.4402,82.7324,0,255,900);
    Attach3DTextLabelToVehicle(text1,truck1,2855.8965,916.0118,11.4402);
This is when it works, but with this one, the label is not attached to the vehicle/

pawn Код:
text1 = Create3DTextLabel("Trucking Mission", 0xFFFFFFFF, 2855.8965,916.0118,11.4402, 50.0, 0, 1 );
    truck1 = CreateVehicle(403,2855.8965,916.0118,11.4402,82.7324,0,255,900);
    Attach3DTextLabelToVehicle(truck1,text1,2855.8965,916.0118,11.4402);
pawn Код:
Attach3DTextLabelToVehicle(text1,truck1,0.0,0.0,0.0);
should work and I hope you defined text1 as: new Text3D: text1;


Re: Small help with 3dLabels - Tee - 26.10.2010

Thanks. Now i understand, they are not normal pos, they are offsets.