3D Text problems
#1

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);
}
Reply
#2

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.
Reply
#3

It attaches them to all the spawned cars, but not the ones players buy and respawn
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)