WantedLevel Variable Changing..(?)
#9

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..
Reply


Messages In This Thread
WantedLevel Variable Changing..(?) - by vassilis - 04.11.2016, 16:11
Respuesta: WantedLevel Variable Changing..(?) - by Ner0x96 - 04.11.2016, 17:22
Re: Respuesta: WantedLevel Variable Changing..(?) - by vassilis - 04.11.2016, 17:28
Re: WantedLevel Variable Changing..(?) - by Desaint - 04.11.2016, 18:28
Re: WantedLevel Variable Changing..(?) - by Sanady - 04.11.2016, 19:47
Re: WantedLevel Variable Changing..(?) - by SickAttack - 04.11.2016, 20:06
Re: WantedLevel Variable Changing..(?) - by vassilis - 04.11.2016, 21:17
Re: WantedLevel Variable Changing..(?) - by SickAttack - 04.11.2016, 21:35
Re: WantedLevel Variable Changing..(?) - by vassilis - 04.11.2016, 22:08
Re: WantedLevel Variable Changing..(?) - by SickAttack - 04.11.2016, 22:11

Forum Jump:


Users browsing this thread: 5 Guest(s)