Set timer is not working
#7

Quote:
Originally Posted by LeetModz
Посмотреть сообщение
Ok tell me if Im right,

once it gets to that timer line, it waits 4 seconds then executes the command in the string?
and then after that command is done, it should return to the line after the timer line.

If thats so, then my code should be working, as it is supposed to execute the delay function (dummy function) after the 4 seconds is up, but it seems its skipping the 4 seconds completely.
How a timer works.. It goes to the part in the code that you set the timer in, and starts a timer, once the timer time is finished (4,000 ms in the example above), it will execute the code in the timers public.

E.G;

pawn Код:
public OnGameModeInit ( )
{
    SetTimer( "ThisisaFunction", 1000, true );
    return true;
}

forward ThisisaFunction ( );
public ThisisaFunction( )
{
    print( "This timer is called once every second!" );
    return true;
}
Reply


Messages In This Thread
Set timer is not working - by LeetModz - 03.05.2012, 18:30
Re: Set timer is not working - by FalconX - 03.05.2012, 18:33
Re: Set timer is not working - by PrawkC - 03.05.2012, 18:38
Re: Set timer is not working - by Mento - 03.05.2012, 18:44
Re: Set timer is not working - by LeetModz - 03.05.2012, 19:27
Re: Set timer is not working - by Mento - 03.05.2012, 19:31
Re: Set timer is not working - by 2KY - 03.05.2012, 19:53

Forum Jump:


Users browsing this thread: 1 Guest(s)