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

Maybe?

Код:
public playerTabbedLoop() {
    foreach(Player, x; { //ERROR LINE!
        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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)