(17358) : error 029: invalid expression, assumed zero (17358) : warning 215: expression has no effect (17358) : error 001: expected token: ";", but found ")" (17358) : error 029: invalid expression, assumed zero (17358) : fatal error 107: too many error messages on one line
PlayerAfkTicks[i] ++; } else { PlayerAfkTicks[i] = 0; } PlayerLastPos[i][LastX] = PlayerCurrentPos[0]; PlayerLastPos[i][LastY] = PlayerCurrentPos[1]; PlayerLastPos[i][LastZ] = PlayerCurrentPos[2]; if(PlayerAfkTicks[i] == MAX_IDLE_TIME*60); (essa linha) { AFK[i]= 1; SendClientMessage(i, 0x11B1FFAA, "Vocк foi impedido de upar!"); SetPlayerVirtualWorld(i, 1); SetCameraBehindPlayer(i); TogglePlayerControllable(i,0); TextDrawShowForPlayer(i,AfkText); TextDrawShowForPlayer(i,AfkBackText); }
um "if" , com ";" no final ? WTF .
if(PlayerAfkTicks[i] == MAX_IDLE_TIME*60); |
PlayerAfkTicks[i] ++;
}
else
{
PlayerAfkTicks[i] = 0;
}
PlayerLastPos[i][LastX] = PlayerCurrentPos[0];
PlayerLastPos[i][LastY] = PlayerCurrentPos[1];
PlayerLastPos[i][LastZ] = PlayerCurrentPos[2];
if(PlayerAfkTicks[i] == MAX_IDLE_TIME*120)
{
AFK[i]= 1;
SendClientMessage(i, 0x11B1FFAA, "Vocк foi impedido de upar!");
SetPlayerVirtualWorld(i, 1);
SetCameraBehindPlayer(i);
TogglePlayerControllable(i,0);
TextDrawShowForPlayer(i,AfkText);
TextDrawShowForPlayer(i,AfkBackText);
}