Have some problems with local variable x! Please help me out.
#1

PHP код:
public playerTabbedLoop() {
    foreach(
Playerx) { [B][I][U]//ERROR LINE![/U][/I][/B]
        
if(playerVariables[x][pTabbed] == && IsValidDynamic3DTextLabel(playerVariables[x][pAFKLabel]))
            
DestroyDynamic3DTextLabel(playerVariables[x][pAFKLabel]);
        
playerVariables[x][pConnectedSeconds] += 1;
        if(
playerVariables[x][pConnectedSeconds] < gettime()-&& playerVariables[x][pTabbed] != && playerVariables[x][pConnectedSeconds] >= && GetPlayerState(x) != && GetPlayerState(x) != && GetPlayerState(x) != 7) {
            
playerVariables[x][pTabbed] = 1;
            
playerVariables[x][pAFKLabel] = CreateDynamic3DTextLabel("Paused."COLOR_RED0007.5x_1___7.5);
        }
    }
    return 
1;

Error:
PHP код:
warning 219local variable "x" shadows a variable at a preceding level
warning 213
tag mismatch
warning 206
redundant testconstant expression is non-zero
error 022
must be lvalue (non-constant)
warning 215expression has no effect
error 001
expected token";"but found ")"
error 029invalid expressionassumed zero
fatal error 107
too many error messages on one line 
Please help me out.

With respect Scrillex.

Thanks for your time.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)