03.05.2012, 19:53
Quote:
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. |
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;
}