01.01.2011, 16:39
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;
}