Posts: 1,219
Threads: 51
Joined: Jul 2012
22.12.2016, 16:30
(
Последний раз редактировалось BiosMarcel; 23.12.2016 в 21:41.
)
Hello,
Whenever i create a 3D Text Label, my steamer stops working, down below is the code where i create the label.
PHP код:
Delete3DTextLabel(pickupInfo[newPickup][label]);
new labelText[40];
format(labelText, sizeof(labelText), "Vehicle Pickup\n%s", getVehicleName(vehicleModelId));
pickupInfo[newPickup][label] = Create3DTextLabel(labelText, 0x008080FF, pickupX, pickupY, pickupZ, 40.0, 0, 0);
Is anyone able to tell me why that is happening?
Posts: 599
Threads: 48
Joined: May 2016
Quote:
Originally Posted by [Bios]Marcel
Hello,
Whenever i create a 3D Text Label, my steamer stops working, down below is the code where i create the label.
PHP код:
Delete3DTextLabel(pickupInfo[newPickup][label]);
new labelText[40];
format(labelText, sizeof(labelText), "Vehicle Pickup\n%s", getVehicleName(vehicleModelId));
pickupInfo[newPickup][label] = Create3DTextLabel(labelText, 0x008080FF, pickupX, pickupY, pickupZ, 40.0, 0, 0);
Is anyone able to tell me why that is happening?
|
complie with -d3 and use crashdetect
Posts: 1,219
Threads: 51
Joined: Jul 2012
Posts: 599
Threads: 48
Joined: May 2016
Quote:
Originally Posted by [Bios]Marcel
... my logs are empty
|
what makes you sure it's from creating 3DTL ?
Posts: 1,219
Threads: 51
Joined: Jul 2012
I removed the text draw and it worked
an antique programmer technique
Posts: 1,219
Threads: 51
Joined: Jul 2012
22.12.2016, 21:05
(
Последний раз редактировалось BiosMarcel; 23.12.2016 в 00:23.
)
Quote:
Originally Posted by Micko123
Try this
PHP код:
CreateDynamic3DTextLabel(labelText, 0x008080FF, pickupX, pickupY, pickupZ, 40.0, _, _, _, 0, 0, _, _);
|
Thats not a fix, that's a workaround, slight difference, i'd prefer using the default 3dtext, cause i want to replace the streamer soon
Posts: 1,219
Threads: 51
Joined: Jul 2012
Bump
So, i have switched to the DynamicText3DLables and it worked for a while, after adding some pickups (i removed the labels then), it doesn't stream objects again. And no switching to dynamic pickups didn't help at all.
Please help