03.07.2012, 16:41
It doesn't disappear because you show it again in that func.
Ignore this^^ got wrong end of the stick.
I can't see you destroying/hiding the etxtdraw anywhere in the code you posted apart from that function.
pawn Код:
stock InfoBoxForPlayer(playerid, text[])
{
TextDrawHideForPlayer(playerid, InfoBox[playerid]);
// TextDrawDestroy(InfoBox[playerid]);
new string[800];
//ViewingBox[playerid] = 1;
format(string, sizeof(string), "%s", text);
TextDrawSetString(InfoBox[playerid], string);
TextDrawShowForPlayer(playerid, InfoBox[playerid]);//showing it again
}
I can't see you destroying/hiding the etxtdraw anywhere in the code you posted apart from that function.