Textdraw Doesn't hide - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Textdraw Doesn't hide (
/showthread.php?tid=171922)
Textdraw Doesn't hide -
Gforcez - 28.08.2010
Hello,
i have a little problem, i use a textdraw to announce some usefull tips. But the textdraw don't go away, I use a Timer. But it will not work.
The Textdraw:
Код:
if(pickupid == BankPickup)
{
TextDrawSetString(msgbox[playerid], "Welcome at the Las Venturas bank~n~use ~r~/deposit ~w~or ~r~/withdraw ~w~to get or put cash on your bank account");
TextDrawShowForPlayer(playerid, msgbox[playerid]);
SetTimerEx("DisableMessageBox", 5000, false, "i"); // the timer
}
The Function:
Код:
public DisableMessageBox(playerid)
{
TextDrawHideForPlayer(playerid, msgbox[playerid]);
return 1;
}
Do you guys know why it doesn't work ?
Greetings
Gforcez
Re: Textdraw Doesn't hide -
Dynamic007 - 28.08.2010
pawn Код:
SetTimerEx("DisableMessageBox", 5000, false, "i", playerid);
Re: Textdraw Doesn't hide -
[NoV]LaZ - 28.08.2010
pawn Код:
SetTimerEx( "DisableMessageBox", 5000, false, "i", playerid );
https://sampwiki.blast.hk/wiki/SetTimerEx
________
Vapir