07.03.2014, 23:48
I've created a vehicle:
The car gets created, Yet the 3DTextAbel does not attach to the vehicle.
What could be wrong?
pawn Код:
new CreatedVehicle = CreateVehicle(dCar[i][Model],dCar[i][xPos],dCar[i][yPos],dCar[i][zPos],dCar[i][aPos],dCar[i][Color1],dCar[i][Color2],-1);
new String[128];
format(String, sizeof(String), "%s\n%s\n$%d",GetVehicleName(dCar[i][Model]),ddData[i][DealerName],dCar[i][Cost]);
dCar[i][DcarLabel] = Create3DTextLabel(String, COLOR_LIGHTBLUE, 0,0,0, 15.0, 0, 0);
Attach3DTextLabelToVehicle( dCar[i][DcarLabel], CreatedVehicle, 0.0, 0.0, 1.0);
What could be wrong?