Quote:
Originally Posted by SickAttack
PHP код:
KillTimer(losewanted[playerid]);
losewanted[playerid] = SetTimerEx("LoseWanted", 5000,1,"i",playerid);
Timer IDs start at 1 and are never used twice. So it's totally safe, and it's most likely the most appropriate approach to prevent timers from calling the same function twice or more times (considering the time they were started at) for the same player.
|
Ok i changed this but still that's not the problem since my problem didn't get a solution yet..
My problem is that after some seconds my
pinfo[playerid][Wantedlevel] variable is resetted to 0 even if it should be reduced to 5(if wanted level was 6) to 4(if wantedlevel was 5) etc..