06.01.2013, 05:32
Alright, so I have a system to place 3DText on the vehicle, with it's price.
However, if VID 3 is forsale, the Text spawns on Vehicle ID 4. And so on.
It's very annoying, and I've tried multiple things but it didn't work out overall.
However, if VID 3 is forsale, the Text spawns on Vehicle ID 4. And so on.
pawn Код:
if(DynamicVehicles[idx][CarPrice] != 0)
{
new str[64];
format(str, sizeof(str), "Price: ${F81414} %d", DynamicVehicles[idx][CarPrice]);
DynamicVehicles[idx][Price] = Create3DTextLabel(str, C_WHITE, 0.00, 0.00, 0.00, 20.0, 0, 0);
Attach3DTextLabelToVehicle(DynamicVehicles[idx][Price], idx, 0.00, 0.00, 1.0);
}