Little help __ not hard ;p - 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: Little help __ not hard ;p (
/showthread.php?tid=524336)
Little help __ not hard ;p -
Le3aT - 06.07.2014
PHP код:
/* ================================================================================================================================================ */
//Infernus 3D
strcat(string, "{F81414}Infernus\n");
strcat(string, "{FFFFFF}Get in the car to buy it");
DealerLabel[DealerInfernus] = Create3DTextLabel(string, COL_WHITE, 1799.1167,-1487.9091,-12.0296, 30, 0);
GetVehiclePos(DealerInfernus, VehX, VehY, VehZ);
Attach3DTextLabelToVehicle(DealerLabel[DealerInfernus], DealerInfernus, VehX, VehY, VehZ);
/* ================================================================================================================================================ */
//Turismo 3D
strcat(string, "{F81414}Turismo\n");
strcat(string, "{FFFFFF}Get in the car to buy it");
DealerLabel[DealerTurismo] = Create3DTextLabel(string, COL_WHITE, 1794.2654,-1486.6549,-12.0054, 30, 0);
GetVehiclePos(DealerTurismo, VehX, VehY, VehZ);
Attach3DTextLabelToVehicle(DealerLabel[DealerTurismo], DealerTurismo, VehX, VehY, VehZ);
Are those codes right ? it gives me no errors but when i get ig it doesn't work
Re: Little help __ not hard ;p -
Konstantinos - 06.07.2014
Take a look at the example of the Wiki:
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle
Re: Little help __ not hard ;p -
Le3aT - 06.07.2014
I made it exactly like the wiki and still, not working.
Re: Little help __ not hard ;p -
tyler12 - 06.07.2014
Do not use VehX, VehY and VehZ when attaching as they are offsets. Just use '0.0' for all of them instead and it should be working fine.
Re: Little help __ not hard ;p -
Crayder - 06.07.2014
Show us where the DealerInfernus is created... (CreateVehicle, or AddStaticVehicle, or similiar.)