3D Text problems - 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: 3D Text problems (
/showthread.php?tid=245563)
3D Text problems -
Wezley - 31.03.2011
I'm trying to attach 3D Texts to cars that are buyable in my script it works fine, but when the car spawns there is no 3D Text i have the code under OnVehcileSpawn and Onvehiclestreamin heres the code
pawn Код:
for(new i = 0;i < MAX_VEHICLES; i++)
{
new Float:tmpx, Float:tmpy, Float:tmpz;
GetVehiclePos(i, tmpx, tmpy, tmpz);
new Text3D:label = Create3DTextLabel("Car", 0x00FFFFFF,tmpx,tmpy,tmpz,20,0,1);
Attach3DTextLabelToVehicle(Text3D:label, i, 0, 0, 0);
}
Re: 3D Text problems -
s0nic - 31.03.2011
Did you check all the cars? Because im thinking its only attaching it to one car as you only created one Text Label..
Can you double check in game to check if its only attaching itself to the last car that is spawned.
Re: 3D Text problems -
Wezley - 31.03.2011
It attaches them to all the spawned cars, but not the ones players buy and respawn
Re: 3D Text problems -
s0nic - 31.03.2011
Weird..Have you tried to attach the Label when the player processes the purchase of the vehicle? If not try it real quick and if it doesn't work then well hopefully someone else can help.
I haven't messed with labels in a while so sorry if i can't help, but at least i tried. =p