Conflicting Timers
#1

Okay, I ran into a Timer problem when they are self-recursive, I made this once I suspected the problem.

pawn Код:
OnGameModeInit()
{
SetTimerEx("testing", 1000, 0, "s", "woot");
SetTimerEx("testing", 500, 0, "s", "hehe");
return 1;
}

foward testing(string[])
public testing(string[])
{
print(string);
SetTimerEx("testing", 1000, 0, "s", string);
return 1;
}
excuse the indentation, I guess I have deleted my function.
well, that would print a (null) and then restart my server, so i changed it to.
pawn Код:
foward testing(string[])
public testing(string[])
{
new string2[1000];
format(string2, sizeof(string2), "%s", string);
print(string2);
SetTimerEx("testing", 1000, 0, "s", string2);
return 1;
}
and that would print hehe only. it wouldn't print any woot's.

why? I have no clue. but i definitely need help.
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)