01.10.2014, 13:11
So, As I've recently made a reply on Streamer plugin thread regarding the bug in Dynamic3DTextLabels
I've now tried to update the labels, delete and re-create them. Nothing worked. I also almost found what's wrong..
The labels are not DELETING/DESTROYED. I tried to make a command for deleting a 3DTextLabel of a particular house ID:
And I've found that the label wasn't destroying. I even spammed "/delhouselab 1" while standing infront of the house (where the label is placed), but it never gets destroyed.
This is how I create it/the server does when the positions are retrieved from the database;
The labels are properly created but, they aren't getting destroyed/updated.
If I use UpdateDynamic3DTextLabelText, It creates another one label and both of the labels gets mixed up.
Even if I DestroyDynamic3DTextLabel and create it again, the same happens as given above.
This is how it looks like when I update it/re-create it..
I've now tried to update the labels, delete and re-create them. Nothing worked. I also almost found what's wrong..
The labels are not DELETING/DESTROYED. I tried to make a command for deleting a 3DTextLabel of a particular house ID:
pawn Код:
CMD:delhouselab(playerid, params[])
{
new id;
if(sscanf(params, "i", id)) return SendClientMessage(playerid, COL_RED, "Usage: "GREY"/delhouselab (House ID)");
DestroyDynamic3DTextLabel(HouseInfo[id][Label]);
SendClientMessage(playerid, COL_RED, "DELETED.");
return 1;
}
This is how I create it/the server does when the positions are retrieved from the database;
pawn Код:
for(new k = 0; k < sizeof(Worlds); k++)
{
HouseInfo[i][Label] = CreateDynamic3DTextLabel(lString,COLOR_BLUE, HouseInfo[i][OutX], HouseInfo[i][OutY], HouseInfo[i][OutZ]+0.5, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, Worlds[x], -1, -1, 50.0);
}
If I use UpdateDynamic3DTextLabelText, It creates another one label and both of the labels gets mixed up.
Even if I DestroyDynamic3DTextLabel and create it again, the same happens as given above.
This is how it looks like when I update it/re-create it..