SA-MP Forums Archive
Attaching a 3D text to a vehicle - 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: Attaching a 3D text to a vehicle (/showthread.php?tid=410318)



Attaching a 3D text to a vehicle - Neil. - 25.01.2013

.....


Re: Attaching a 3D text to a vehicle - coakiddo - 25.01.2013

Код:
vid = House_AddVehicle(HouseID, cModel, cPaint, cComponents, cx, cy, cz, crot, Col1, Col2);
     new owners[120];
     new vehicleid = AHouseData[HouseID][VehicleIDs];
     format(owners, sizeof(owners),"%s\nOwned by %s",GetVehicleName(vid),AVehicleData[vehicleid][Owner]);
     new Text3D:vehicle3dtext[vid] = Create3DTextLabel(owners, 0xFF0000AA, 0.0,0.0,0.0,50.0,0);// ERROR LINE 3217
     Attach3DTextLabelToVehicle(vehicle3dtext,vid,0.0,0.0,0.0);
This? You didn't add a tag to vehicle3dtext.


Re: Attaching a 3D text to a vehicle - Neil. - 25.01.2013

Quote:
Originally Posted by coakiddo
Посмотреть сообщение
Код:
vid = House_AddVehicle(HouseID, cModel, cPaint, cComponents, cx, cy, cz, crot, Col1, Col2);
     new owners[120];
     new vehicleid = AHouseData[HouseID][VehicleIDs];
     format(owners, sizeof(owners),"%s\nOwned by %s",GetVehicleName(vid),AVehicleData[vehicleid][Owner]);
     new Text3D:vehicle3dtext[vid] = Create3DTextLabel(owners, 0xFF0000AA, 0.0,0.0,0.0,50.0,0);// ERROR LINE 3217
     Attach3DTextLabelToVehicle(vehicle3dtext,vid,0.0,0.0,0.0);
This? You didn't add a tag to vehicle3dtext.
Works like a charm
Cheers!