Loop not working properly?
#5

Quote:
Originally Posted by MP2
Посмотреть сообщение
Ever heard of maths?

pawn Код:
public LowerWanted()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(GetPlayerWantedLevel(i) > 0)
        {
            SetPlayerWantedLevel(i, GetPlayerWantedLevel(i) - 1);
        }
    }
    return 1;
}
Also it seems a bit silly reducing their level so fast - what's the point of being wanted for ~10 seconds? You might as well not make them wanted in the first place..
I did hear about math, however I did it like I did for a reason.
Reply


Messages In This Thread
Loop not working properly? - by 101 - 16.07.2013, 08:46
Re: Loop not working properly? - by iggy1 - 16.07.2013, 08:50
Re: Loop not working properly? - by 101 - 16.07.2013, 08:52
Re: Loop not working properly? - by MP2 - 16.07.2013, 08:52
Re: Loop not working properly? - by 101 - 16.07.2013, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)