The txtdraw doesnt disappear
#3

You mean it was disappearing after some time automatically, but now doesn't work?
pawn Код:
new HideTimer[MAX_PLAYERS];

stock InfoBoxForPlayer(playerid, text[])
{
    TextDrawHideForPlayer(playerid, InfoBox[playerid]);
    new string[800];
    format(string, sizeof(string), "%s", text);
    TextDrawSetString(InfoBox[playerid], string);
    TextDrawShowForPlayer(playerid, InfoBox[playerid]); //You can't hide it with this function because you show it again here.
    KillTimer(HideTimer[playerid]);
    HideTimer[playerid] = SetTimerEx("HideNow",8000,false,"i",playerid);
}
forward HideNow(playerid);
public HideNow(playerid) { TextDrawHideForPlayer(playerid, InfoBox[playerid]); return 1; }
Maybe you had in your script an else that was hiding the TextDraw (where you are checking the positions) and you deleted it.
Reply


Messages In This Thread
The txtdraw doesnt disappear - by Riddy - 03.07.2012, 16:36
Re: The txtdraw doesnt disappear - by iggy1 - 03.07.2012, 16:41
Respuesta: The txtdraw doesnt disappear - by [DOG]irinel1996 - 03.07.2012, 16:49
Re: The txtdraw doesnt disappear - by Riddy - 03.07.2012, 17:31
Re: The txtdraw doesnt disappear - by Riddy - 03.07.2012, 18:40
Re: The txtdraw doesnt disappear - by fadhilkab - 03.07.2012, 20:04
Re: The txtdraw doesnt disappear - by Riddy - 03.07.2012, 20:17

Forum Jump:


Users browsing this thread: 1 Guest(s)