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

Error
D:\serverGTA\SERVER-BARU\gamemodes\vx-rp.pwn(2201) : error 022: must be lvalue (non-constant)

On line 2201
foreach(Player, x) {
Reply
#2

D:\serverGTA\SERVER-BARU\gamemodes\vx-rp.pwn(2201) : error 001: expected token: ";", but found ")"
D:\serverGTA\SERVER-BARU\gamemodes\vx-rp.pwn(2201) : error 029: invalid expression, assumed zero
its error on same line
Reply
#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
#4

You are doing a constant- not a value .-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)