Delete3DTextLabel doesn't work
#1

I've got this code:
Код:
public OnVehicleSpawn(vehicleid)
{
	Delete3DTextLabel(Text3D:VehicleData[vehicleid][LockedLabelID]);
	VehicleData[vehicleid][LockedLabelID] = -1;
	printf("OnVehicleSpawn(vehicleid = %d)", vehicleid);
	return 1;
}
Console showed
Quote:

OnVehicleSpawn(vehicleid = 102)

, but the 3D Text still exists

I added:
Код:
printf("%d", VehicleData[vehicleid][LockedLabelID]);
, console showed
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);
Any ideas?
Reply


Messages In This Thread
Delete3DTextLabel doesn't work - by ziomal432 - 22.04.2010, 16:53
Re: Delete3DTextLabel doesn't work - by WackoX - 22.04.2010, 16:56
Re: Delete3DTextLabel doesn't work - by WackoX - 22.04.2010, 16:57
Re: Delete3DTextLabel doesn't work - by ziomal432 - 22.04.2010, 17:01
Re: Delete3DTextLabel doesn't work - by ziomal432 - 23.04.2010, 19:57

Forum Jump:


Users browsing this thread: 2 Guest(s)