Posts: 1,648
Threads: 482
Joined: Jun 2010
http://prnt.sc/cpexr6
This has been happening a lot. I clear it when people leave the server and when people join and it does nothing.
pawn Код:
UpdateDynamic3DTextLabelText(DeathLabel[playerid], -1, " ");
DestroyDynamic3DTextLabel(DeathLabel[playerid]);
Both of this has been removed under OnPlayerDisconnect and OnPlayerConnect.
Posts: 928
Threads: 13
Joined: Feb 2016
Reputation:
0
Check where you are creating/updating it and post here the codes.
Posts: 1,648
Threads: 482
Joined: Jun 2010
pawn Код:
new string[128];
format(string, sizeof(string), "D E A D\nB O D Y");
DeathLabel[playerid] = CreateDynamic3DTextLabel(string, COLOUR_REALRED, 0.0, 0.0, -0.5, 50.0, playerid, INVALID_VEHICLE_ID);
format(string, sizeof(string), "You have "COL_RED"died."COL_WHITE" Please assist players with the use of "COL_GREEN"'/do' "COL_WHITE"and do not "COL_RED"RK.");
SendClientMessage(playerid, COLOUR_WHITE, string);
Posts: 1,506
Threads: 13
Joined: Jun 2015
Debugging?
--
Try doing the following...
OnPlayerConnect
- (Re)Create it
- Update the label
- print the result of the label
OnPlayerSpawn / OnPlayerDeath
- Update the label
Posts: 694
Threads: 2
Joined: Oct 2012
Reputation:
0
You are probably clearing the variable before destroying it, effectively losing the ID.
Check for DeathLabel[playerid] variable getting changed or check for recreation of the deathlabel when there is one already there.
Posts: 1,648
Threads: 482
Joined: Jun 2010
I've checked that a billion times to no avail.