22.04.2010, 16:53
I've got this code:
Console showed
, but the 3D Text still exists
I added:
, console showed
.
Creating code:
Any ideas?
Код:
public OnVehicleSpawn(vehicleid) { Delete3DTextLabel(Text3D:VehicleData[vehicleid][LockedLabelID]); VehicleData[vehicleid][LockedLabelID] = -1; printf("OnVehicleSpawn(vehicleid = %d)", vehicleid); return 1; }
Quote:
OnVehicleSpawn(vehicleid = 102) |
I added:
Код:
printf("%d", VehicleData[vehicleid][LockedLabelID]);
Quote:
6 |
Creating code:
Код:
VehicleData[vehicleid][LockedLabelID] = _:Create3DTextLabel("No fuel", 0xDDB950FF, 0.0, 0.0, 0.0, 30.0, 0); Attach3DTextLabelToVehicle(Text3D:VehicleData[vehicleid][LockedLabelID], vehicleid, 0.0, 0.0, 1.0);