[Help] Attach3DTextLabelToVehicle - 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: [Help] Attach3DTextLabelToVehicle (
/showthread.php?tid=148873)
[Help] Attach3DTextLabelToVehicle -
tony_fitto - 19.05.2010
Hey guys, I'm quiet new in the 3dtextlabel but i have got most of my things to work. but not this time.
I where trying to add the license plates for my vehicles but i doesn't appear in game.
No Error or warnings.
Here is my code that i use and it loads the cars from a *.cfg file.
I also wonder how i could do to make the license plate like "2BBM299" for exampel because i don't know is only %s should be work because its both text and numbers.
Код:
for(new h = 192; h < sizeof(CarInfo); h++)
{
format(PropertyString,sizeof(CarString),"%s", CarInfo[h][cLicense]);
CarLabel[h] = Create3DTextLabel(CarString ,0x00FF00FF,CarInfo[h][cLocationx], CarInfo[h][cLocationy], CarInfo[h][cLocationz],0, 1);
Attach3DTextLabelToVehicle( CarLabel[h], h, 0.0, 0.0, 2.0);
}
Help anyone.