how to make killtimer
#2

You need to name the timer.

example

pawn Код:
new timer;

timer = SetTimer(...

KillTimer(timer);

//other example with your script

new ScoreTimer;

ScoreTimer = SetTimer("GiveScore", 60000, true);

KillTimer(ScoreTimer);

forward GiveScore;
public GiveScore()
{
   for(new i=0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
      {
            SetPlayerScore(i, GetPlayerScore(i) + 1);
      }
   }
}
Also when you post something that is related with pawn use the above tags [pawn] [/ pawn] so we can see clearly your pawn code.
Reply


Messages In This Thread
how to make killtimer - by sMog. - 25.04.2011, 19:36
Re: how to make killtimer - by Cypress - 25.04.2011, 19:40
Re: how to make killtimer - by sMog. - 25.04.2011, 19:50

Forum Jump:


Users browsing this thread: 1 Guest(s)