Quote:
Originally Posted by Gammix
pawn Код:
Delete3DTextLabel(vehicle_label[User[playerid][ownedvehicle_id]]);
Before deleting, you must check if it is existing or not, because it may destroy the one with the value stored in that array.
Here you can do that by checking for vehicle instead (in your command: spawnvehicle)
pawn Код:
if (IsValidVehicle(User[playerid][ownedvehicle_id])) { Delete3DTextLabel(vehicle_label[User[playerid][ownedvehicle_id]]); DestroyVehicle(User[playerid][ownedvehicle_id]); }
Just for your future updating, maximum 3D text limit is 1024. (use streamer and you won't need to get into too much hassle like in this)
|
Well i am pretty sure it has nothing to do with the Delete3DTextLabel.
It's just that, the LabelUpdate updates the vehicle_label, instead of player_label.
By the way, thank you for letting me know.
Edit: IsValidVehicle doesn't exist.