countdown
#6

If you'd follow the code path, you'd spot the obvious error very easily:
pawn Код:
countn[playerid]--;//The timer decreases from 10 to 0
if(countn[playerid]>=-1)
{
    KillTimer(timer[playerid]);
    //code[What your timer actually does]
}
- countn is decreased from 12 to 11.
- Reached if statement: if (11 >= -1) returns true
- KillTimer

You want point two to return false. So change the operator around from >= to <=.
Reply


Messages In This Thread
countdown - by thefatshizms - 13.09.2012, 19:42
Re: countdown - by Glint - 13.09.2012, 19:48
Re: countdown - by Djole1337 - 13.09.2012, 19:53
Re: countdown - by xMCx - 13.09.2012, 20:57
Re: countdown - by thefatshizms - 16.09.2012, 10:45
Re: countdown - by Vince - 16.09.2012, 10:50
Re: countdown - by thefatshizms - 16.09.2012, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)