foreach loop preferencing id0 over anyone else?
#4

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
Why do you use continue below PlayerStats[i][Boolean], try removing that because that continues that loop to else, that is why else is getting called most of the time.
LOL. Some people.. xD

pawn Код:
public FuncName()
{
    foreach(Player, i)
    {
        new str[30];
        if(PlayerStats[i][Boolean]) format(str, sizeof(str), "DRIFT TICK FOR PLAYERID %d", i);
        else format(str, sizeof(str), "THIS GUY WAS FALSE: %d", i);
        SendClientMessageToAll(ORANGE, str);
    }
    //Rest of code...
}
Worth a shot, this honestly should work.
Reply


Messages In This Thread
foreach loop preferencing id0 over anyone else? - by Hoborific - 30.01.2014, 06:09
Re: foreach loop preferencing id0 over anyone else? - by Patrick - 30.01.2014, 06:35
Re: foreach loop preferencing id0 over anyone else? - by Hoborific - 30.01.2014, 06:38
Re: foreach loop preferencing id0 over anyone else? - by Threshold - 30.01.2014, 10:18
Re: foreach loop preferencing id0 over anyone else? - by Hoborific - 30.01.2014, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)