20.10.2012, 09:21
PHP код:
public playerTabbedLoop() {
foreach(Player, x) { [B][I][U]//ERROR LINE![/U][/I][/B]
if(playerVariables[x][pTabbed] == 0 && IsValidDynamic3DTextLabel(playerVariables[x][pAFKLabel]))
DestroyDynamic3DTextLabel(playerVariables[x][pAFKLabel]);
playerVariables[x][pConnectedSeconds] += 1;
if(playerVariables[x][pConnectedSeconds] < gettime()-1 && playerVariables[x][pTabbed] != 1 && playerVariables[x][pConnectedSeconds] >= 5 && GetPlayerState(x) != 9 && GetPlayerState(x) != 0 && GetPlayerState(x) != 7) {
playerVariables[x][pTabbed] = 1;
playerVariables[x][pAFKLabel] = CreateDynamic3DTextLabel("Paused.", COLOR_RED, 0, 0, 0, 7.5, x, _, 1, _, _, _, 7.5);
}
}
return 1;
}
PHP код:
warning 219: local variable "x" shadows a variable at a preceding level
warning 213: tag mismatch
warning 206: redundant test: constant expression is non-zero
error 022: must be lvalue (non-constant)
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
With respect Scrillex.
Thanks for your time.