error 022: must be lvalue (non-constant)
#3

public playerTabbedLoop() {
foreach(Player, x) {
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
error 022: must be lvalue (non-constant) - by ridho27 - 09.08.2012, 06:04
Re: error 022: must be lvalue (non-constant) - by ridho27 - 09.08.2012, 06:07
Re: error 022: must be lvalue (non-constant) - by ridho27 - 09.08.2012, 06:16
Re: error 022: must be lvalue (non-constant) - by [GO]Hardstyle - 09.08.2012, 07:02

Forum Jump:


Users browsing this thread: 1 Guest(s)