Raised This Month: $51 Target: $400
 12% 

[Solved] Error 057


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 03-27-2015 , 12:38   [Solved] Error 057
Reply With Quote #1

Code:
		if(
			!bBoolean[iClient]
#if defined MY_CHECK_BOTS
			|| IsFakeClient( iClient )
#endif
		)
			MyFunction( iClient );
Code:
error 057: unfinished expression before compiler directive
A bug?

Last edited by Leonardo; 03-28-2015 at 17:47.
Leonardo is offline
_AeonOne_
Member
Join Date: Nov 2012
Location: Berlin, Germany
Old 03-27-2015 , 13:00   Re: Error 057
Reply With Quote #2

Seems intended.
Just do this:
PHP Code:
#if defined MY_CHECK_BOTS
        
if(!bBoolean[iClient] || IsFakeClientiClient ))
#else
        
if(!bBoolean[iClient])
#endif 

Last edited by _AeonOne_; 03-27-2015 at 13:01.
_AeonOne_ is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 03-27-2015 , 13:53   Re: Error 057
Reply With Quote #3

"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."
__________________
asherkin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:57.


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