25.04.2011, 19:40
You need to name the timer.
example
Also when you post something that is related with pawn use the above tags [pawn] [/ pawn] so we can see clearly your pawn code.
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);
}
}
}