TimerEx
#8

Quote:
Originally Posted by Mattakil
Посмотреть сообщение
hmmm, what does KillTimer do here?

It should work something like this:

pawn Код:
//whatever to show the textdraws
SetTimerEx(WelcomeMessage, 5000, 0, i, playerid);

//somewhere else
forward WelcomeMessage(playerid);
public WelcomeMessage(playerid)
{
    //textdrawhide here
}
That should be all you need to make that work
I removed all the WelcomeTimerEx and KillTimerEx, and done what you suggested, and it still didn't work; I still need to re-connect for the message to disappear. This is what I have:
pawn Код:
forward WelcomeTimer(playerid);
public WelcomeTimer(playerid)
{
    print("1");
    print("2");
    TextDrawHideForPlayer(playerid, WelcomeScreen0);
    print("3");
    TextDrawHideForPlayer(playerid, WelcomeScreen1);
    print("4");
    TextDrawHideForPlayer(playerid, WelcomeScreen2);
    print("5");
    TextDrawHideForPlayer(playerid, WelcomeScreen3);
    print("6");
}
And then I call it like this when the player spawns
pawn Код:
SetTimerEx("WelcomeTimer", 2500, false, "i", playerid);
Reply


Messages In This Thread
TimerEx - by Jack_Leslie - 31.10.2013, 22:52
Re: TimerEx - by Mattakil - 31.10.2013, 22:55
Re: TimerEx - by Jack_Leslie - 31.10.2013, 22:56
Re: TimerEx - by Mattakil - 31.10.2013, 22:59
Re: TimerEx - by Jack_Leslie - 31.10.2013, 23:01
Re: TimerEx - by Pottus - 31.10.2013, 23:05
Re: TimerEx - by Mattakil - 31.10.2013, 23:09
Re: TimerEx - by Jack_Leslie - 31.10.2013, 23:13
Re: TimerEx - by Mattakil - 31.10.2013, 23:49
Re: TimerEx - by Jack_Leslie - 01.11.2013, 04:59

Forum Jump:


Users browsing this thread: 1 Guest(s)