Id 0 Command Processing
#9

And can't you just set the timer rate to 2 seconds instead of 1 seconds. Since the only thing your timer does is to kill the current timer (wich would've ended anyway) and then start a new 1 second timer.. And then you can just remove the public "StartTime".
pawn Код:
if(strcmp(cmd, "/startengine",true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if((GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
            {
                GameTextForPlayer(playerid, " ~g~Starting....", 4000, 3);
                StartTimer2 = SetTimer("StartTime2", 2000, 0);
            }
        }
        return 1;
    }
Reply


Messages In This Thread
Id 0 Command Processing - by Blade_Cervetti - 01.01.2011, 16:20
Re: Id 0 Command Processing - by Grim_ - 01.01.2011, 16:21
Re: Id 0 Command Processing - by Blade_Cervetti - 01.01.2011, 16:25
Re: Id 0 Command Processing - by _rAped - 01.01.2011, 16:27
Re: Id 0 Command Processing - by Grim_ - 01.01.2011, 16:27
Re: Id 0 Command Processing - by Blade_Cervetti - 01.01.2011, 16:30
Re: Id 0 Command Processing - by Grim_ - 01.01.2011, 16:33
Re: Id 0 Command Processing - by Blade_Cervetti - 01.01.2011, 16:34
Re: Id 0 Command Processing - by [03]Garsino - 01.01.2011, 16:39
Re: Id 0 Command Processing - by Blade_Cervetti - 01.01.2011, 16:42

Forum Jump:


Users browsing this thread: 2 Guest(s)