17.05.2011, 14:50
Quote:
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: pawn Код:
|
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");
for(new i=0;i<MAX_PLAYERS;i++)
{
SetTimerEx("ShowScores", 5000, false, "i", i); // Nope.
SetTimerEx("EndGame", 85000, false, "i", i); // 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;
}