[HELP] Timer bug
#1

Hi, I have problem with timers... they don't call functions! OK, I'll explain.

So I put
Код:
SetTimer("FunctionName", 10000, 0);
under my
Код:
OnPlayerConnect(playerid)
and also I have
Код:
Example[playerid] = 1;
under it.

And ofcourse the function(example):

Код:
forward FunctionName(playerid);
public FunctionName(playerid)
{
    Example[playerid] = 0;
	return 1;
}
The problem is:
Код:
Example[playerid]
is still true after the timer calls function... (It supposed to be false)


Reply
#2

Use:
pawn Код:
SetTimerEx("FunctionName", 10000, false, "i", playerid);
Reply
#3

Thanks, much appreciated.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)