Conflicting Timers
#3

I ran
pawn Код:
main()
{
    SetTimerEx("testing", 500, 0, "s", "woot");
    SetTimerEx("lolcat", 1000, 0, "s", "hehe");
}

forward testing(string[])
public testing(string[])
{
    new coolstring[100];
    format(coolstring, sizeof(coolstring), "%s", string);
    printf("%s &", coolstring);
    SetTimerEx("lolcat", 1000, 0, "s", coolstring);
    return 1;
}

forward lolcat(string[])
public lolcat(string[])
{
    new coolstring[100];
    format(coolstring, sizeof(coolstring), "%s", string);
    printf("%s &&", coolstring);
    SetTimerEx("testing", 1000, 0, "s", coolstring);
    return 1;
}
and it prints
woot &&
woot &
woot &
woot &&
woot &&
woot &
woot &
woot &&
...
this puzzles me deeply, since the first time lolcat() get's called is with the direct quote "hehe" yet it shows "woot", I am so confused.
Reply


Messages In This Thread
Conflicting Timers - by Daren_Jacobson - 04.12.2009, 22:27
Re: Conflicting Timers - by Daren_Jacobson - 05.12.2009, 15:41
Re: Conflicting Timers - by Daren_Jacobson - 08.12.2009, 02:12
Re: Conflicting Timers - by yom - 08.12.2009, 02:37

Forum Jump:


Users browsing this thread: 1 Guest(s)