17.05.2011, 07:59
Well, I'm having a weird problem.
My SetTimer isn't working at all. I've never had a problem with this before. I've been using Timers for a long time.
Here's the codes I am using to set timers:
I don't get it why they're not working.
My SetTimer isn't working at all. I've never had a problem with this before. I've been using Timers for a long time.
Here's the codes I am using to set timers:
pawn Код:
//OnGameModeInit
TheGame();
//
public TheGame()
{
print("Going to EndGame"); // Yes it will print
SetTimer("EndGame", 15000, false); // <- Doesn't work
return 1;
}
//
public EndGame()
{
SendClientMessageToAll(-1, "ended");
SetTimer("ShowScores", 5000, false); // Nope.
SetTimer("EndGame", 85000, false); // Nope.
return 1;
}
public ShowScores(playerid)
{
SetTimerEx("EndScores", 30000, false, "i", playerid); // Nope.
SetTimerEx("SkipAbility", 15000, false, "i", playerid); // Nope.
return 1;
}
public SkipAbility(playerid)
{
SkipAbb[playerid] = 1;
TextDrawShowForPlayer(playerid, PressKey);
Seconds = 50;
TheTimer = SetTimer("Countdown", 1000, true); // Nope.
return 1;
}
public CountDown()
{
print("The timer()");
new string[15];
if(Seconds == 0 && Minutes == 0)
{
KillTimer(TheTimer);
TextDrawSetString(TimeDraw[1], "N/A");
return 1;
}
Seconds--;
return 1;
}