public FuncName()
{
foreach(new i : Player)
{
if(!IsPlayerConnected(i)) continue;
if(!PlayerStats[i][Boolean])
{
new str[80];
format(str,sizeof(str),"THIS GUY WAS FALSE:%i",i);
SendClientMessageToAll(ORANGE,str);
continue;
}
else
{
new str[80];
format(str,sizeof(str),"DRIFT TICK FOR PLAYERID %i",i);
SendClientMessageToAll(ORANGE,str);
[15:15:28] DRIFT TICK FOR PLAYERID 0 [15:15:28] DRIFT TICK FOR PLAYERID 0 [15:15:28] DRIFT TICK FOR PLAYERID 0 [15:15:29] DRIFT TICK FOR PLAYERID 0 [15:15:29] DRIFT TICK FOR PLAYERID 0 [15:15:29] DRIFT TICK FOR PLAYERID 0 [15:15:30] DRIFT TICK FOR PLAYERID 0 [15:15:30] DRIFT TICK FOR PLAYERID 1 [15:15:30] DRIFT TICK FOR PLAYERID 0 [15:15:30] DRIFT TICK FOR PLAYERID 1 [15:15:30] DRIFT TICK FOR PLAYERID 0 [15:15:30] DRIFT TICK FOR PLAYERID 1 [15:15:31] DRIFT TICK FOR PLAYERID 0 [15:15:31] DRIFT TICK FOR PLAYERID 1 [15:15:31] DRIFT TICK FOR PLAYERID 0 [15:15:31] DRIFT TICK FOR PLAYERID 0 [15:15:31] DRIFT TICK FOR PLAYERID 0 [15:15:32] DRIFT TICK FOR PLAYERID 0 [15:15:32] DRIFT TICK FOR PLAYERID 0 [15:15:32] DRIFT TICK FOR PLAYERID 0 [15:15:33] DRIFT TICK FOR PLAYERID 0 [15:15:33] DRIFT TICK FOR PLAYERID 0 [15:15:33] DRIFT TICK FOR PLAYERID 0 [15:15:34] DRIFT TICK FOR PLAYERID 0 [15:15:34] DRIFT TICK FOR PLAYERID 0 [15:15:34] DRIFT TICK FOR PLAYERID 0 [15:15:35] DRIFT TICK FOR PLAYERID 0 [15:15:35] DRIFT TICK FOR PLAYERID 0 [15:15:35] DRIFT TICK FOR PLAYERID 0 [15:15:35] DRIFT TICK FOR PLAYERID 0 [15:15:36] DRIFT TICK FOR PLAYERID 0 [15:15:36] DRIFT TICK FOR PLAYERID 0 [15:15:36] DRIFT TICK FOR PLAYERID 0 [15:15:37] DRIFT TICK FOR PLAYERID 0 [15:15:37] DRIFT TICK FOR PLAYERID 0 [15:15:37] DRIFT TICK FOR PLAYERID 0 [15:15:38] DRIFT TICK FOR PLAYERID 0 [15:15:38] DRIFT TICK FOR PLAYERID 0 [15:15:38] DRIFT TICK FOR PLAYERID 1
[15:15:31] DRIFT TICK FOR PLAYERID 0 [15:15:31] DRIFT TICK FOR PLAYERID 1 [15:15:31] DRIFT TICK FOR PLAYERID 0 [15:15:31] DRIFT TICK FOR PLAYERID 1 [15:15:31] DRIFT TICK FOR PLAYERID 0 [15:15:31] DRIFT TICK FOR PLAYERID 1 [15:15:31] DRIFT TICK FOR PLAYERID 0 [15:15:31] DRIFT TICK FOR PLAYERID 1
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.
|
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...
}