Help with error 029: invalid expression,
#2

The problem is the parenthesis.
Код:
if(PlayerInfo[ playerid ][ xHelper ] >= 1 ) || (PlayerInfo[ playerid ][ xAdmin ] >= 1 ) || ( PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) || ( PlayerInfo[ playerid ][ xPromoter ] == 1 )
To fix it you will need to open one or remove the closed parentheses.
Код:
if((PlayerInfo[ playerid ][ xHelper ] >= 1 ) || (PlayerInfo[ playerid ][ xAdmin ] >= 1 ) || ( PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) || ( PlayerInfo[ playerid ][ xPromoter ] == 1 )
The same happens with the last expression
Код:
if(... || ( PlayerInfo[ playerid ][ xPromoter ] == 1 )
To fix it you will need to do the same as before.
Код:
if(... || ( PlayerInfo[ playerid ][ xPromoter ] == 1 ))
Or just use parenthesis when they are really required.
pawn Код:
if (PlayerInfo[ playerid ][ xHelper ] >= 1
|| PlayerInfo[ playerid ][ xAdmin ] >= 1  
|| PlayerInfo[ playerid ][ xVIPLevel ] >= 1
|| PlayerInfo[ playerid ][ xPromoter ] == 1)
Reply


Messages In This Thread
Help with error 029: invalid expression, - by Narkomann - 05.12.2018, 09:27
Re: Help with error 029: invalid expression, - by Calisthenics - 05.12.2018, 10:25

Forum Jump:


Users browsing this thread: 1 Guest(s)