AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [Solved] Error 057 (https://forums.alliedmods.net/showthread.php?t=260561)

Leonardo 03-27-2015 12:38

[Solved] Error 057
 
Code:

                if(
                        !bBoolean[iClient]
#if defined MY_CHECK_BOTS
                        || IsFakeClient( iClient )
#endif
                )
                        MyFunction( iClient );

Code:

error 057: unfinished expression before compiler directive
A bug?

_AeonOne_ 03-27-2015 13:00

Re: Error 057
 
Seems intended.
Just do this:
PHP Code:

#if defined MY_CHECK_BOTS
        
if(!bBoolean[iClient] || IsFakeClientiClient ))
#else
        
if(!bBoolean[iClient])
#endif 


asherkin 03-27-2015 13:53

Re: Error 057
 
"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."


All times are GMT -4. The time now is 12:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.