Textdraw Doesn't hide
#1

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
Reply
#2

pawn Код:
SetTimerEx("DisableMessageBox", 5000, false, "i", playerid);
Reply
#3

pawn Код:
SetTimerEx( "DisableMessageBox", 5000, false, "i", playerid );
https://sampwiki.blast.hk/wiki/SetTimerEx
________
Vapir
Reply


Forum Jump:


Users browsing this thread: