05.09.2016, 13:22
Hello.
I have a problem - after some time (30-60+ minutes?) some dynamic 3d text labels are simply not appearing for whatever reason. They work fine in the first minutes after launching a server but after some time they are nowhere to be seen. Here's the code:
The string is not the problem.
I have a problem - after some time (30-60+ minutes?) some dynamic 3d text labels are simply not appearing for whatever reason. They work fine in the first minutes after launching a server but after some time they are nowhere to be seen. Here's the code:
PHP код:
new Text3D:Info3DText[MAX_PLAYERS]; // top of the gamemode
if(IsValidDynamic3DTextLabel(Info3DText[playerid])) DestroyDynamic3DTextLabel(Info3DText[playerid]); // OnPlayerConnnect
Info3DText[playerid] = CreateDynamic3DTextLabel(strInfoText, 0xFF9900BB, 0.0, 0.0, 0.45, 10, playerid, INVALID_VEHICLE_ID, 1); // OnPlayerConnnect
if(IsValidDynamic3DTextLabel(Info3DText[playerid])) DestroyDynamic3DTextLabel(Info3DText[playerid]); // OnPlayerDisconnect