04.12.2009, 22:27
Okay, I ran into a Timer problem when they are self-recursive, I made this once I suspected the problem.
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.
and that would print hehe only. it wouldn't print any woot's.
why? I have no clue. but i definitely need help.
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;
}
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;
}
why? I have no clue. but i definitely need help.