PlayerTextDraw not hiding - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PlayerTextDraw not hiding (
/showthread.php?tid=665693)
PlayerTextDraw not hiding -
TokicMajstor - 13.04.2019
Hello, hey, wssup, I made cmd /td, to hide all In Game TDs, and it hides all TDs except one. That one is player's name TD, it is Player TD. Witch cmd /td you hide a lot of global TextDraws and a few Player TDs including player's name. All of those are normally hiding, except name TD. So what could be problem? That TD's string is updating only at OnPlayerConnect.
[If code is needed I'll post it]
Re: PlayerTextDraw not hiding -
SiaReyes - 13.04.2019
Provide the code
Re: PlayerTextDraw not hiding -
TokicMajstor - 13.04.2019
Code:
new TDsSrvsize = sizeof(TDsSrv);
new SPEEDsize = sizeof(SPEED);
for(new i = 0; i < TDsSrvsize; i++)
{
TextDrawHideForPlayer(playerid, TDsSrv[i]);
}
PlayerTextDrawHide(playerid, BankTD[0][playerid]);
PlayerTextDrawHide(playerid, GoldTD[0][playerid]);
PlayerTextDrawHide(playerid, HoursTD[0][playerid]);
PlayerTextDrawHide(playerid, LvlTD[0][playerid]);
TextDrawHideForPlayer(playerid, Aduty);
PlayerTextDrawHide(playerid, SkinTD[playerid]);
PlayerTextDrawHide(playerid, NameTD[0][playerid]); /////This TD is making problem
for(new iz = 0; iz < SPEEDsize; iz++)
{
PlayerTextDrawHide(playerid, SPEED[iz][playerid]);
}
I know this variable for getting size of another variable is useless, but I just wanted to be sure