PDA

View Full Version : [Solved] Error 057


Leonardo
03-27-2015, 12:38
if(
!bBoolean[iClient]
#if defined MY_CHECK_BOTS
|| IsFakeClient( iClient )
#endif
)
MyFunction( iClient );
error 057: unfinished expression before compiler directive
A bug?

_AeonOne_
03-27-2015, 13:00
Seems intended.
Just do this:
#if defined MY_CHECK_BOTS
if(!bBoolean[iClient] || IsFakeClient( iClient ))
#else
if(!bBoolean[iClient])
#endif

asherkin
03-27-2015, 13:53
"Compiler directives may only occur between statements, not inside a statement. This error typically occurs when an expression statement is split over multiple lines and a compiler directive appears between the start and the end of the expression. This is not supported."