must be a constant expression;assumed zero
#1

new a[playerid] = 0;

ta dando erro nessa linha
must be a constant expression;assumed zero

Code:
				new a[] = 0; // funciona ?
				a[playerid] ++;
				if(a[playerid] == 3) return Kick(playerid);
fiz assim e compilou
Reply
#2

PHP Code:
    new a[MAX_PLAYERS] = 0// vocк perdeu isso, MAX_PLAYERS
    
a[playerid] ++;
    if(
a[playerid] == 3) return Kick(playerid); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)