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

Compiler error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 02-07-2015 , 03:22   Compiler error
Reply With Quote #1

Hi.
I have a private plugin. Try to compile with the sm version 1.7.0 stable version, but the compiler just send me this message:
Code:
Your plugin failed to compile! Read the errors below:

SourcePawn Compiler 1.7.0
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

/home/groups/sourcemod/upload_tmp/phpw7pmYf.sp(23) : error 169: cannot tag an enum as implicit-int
/home/groups/sourcemod/upload_tmp/phpw7pmYf.sp(51) : warning 234: symbol "GetClientAuthString" is marked as deprecated: Use GetClientAuthId

1 Error.
Older versions compiled this file without problems.
- Maybe this plugin dead with the new version of the SM?
- How can i compiling my plugin with the 1.7.0 version?

Last edited by pubhero; 02-07-2015 at 03:26.
pubhero is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 02-07-2015 , 05:37   Re: Compiler error
Reply With Quote #2

Fix the error and the plugin will still compile, the deprecated symbol can still be used.
Better yet, just use the 1.6 compiler till you recode the plugin to use the new syntax.
Maxximou5 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-07-2015 , 10:17   Re: Compiler error
Reply With Quote #3

What is line 23?
__________________
asherkin is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 02-07-2015 , 14:46   Re: Compiler error
Reply With Quote #4

Code:
enum _:PastHS
pubhero is offline
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 02-07-2015 , 19:48   Re: Compiler error
Reply With Quote #5

Retagging enums is no longer valid syntax.

See #9 and #10 of the developer release notes.
__________________

Last edited by VoiDeD; 02-07-2015 at 19:49.
VoiDeD is offline
pubhero
Veteran Member
Join Date: Aug 2012
Location: Central Europe
Old 02-08-2015 , 00:56   Re: Compiler error
Reply With Quote #6

Then i go back to the older versions. I hope the Valve never not release any big updates for the CSS.
The SM 1.7.0 killed more of my plugins.

Last edited by pubhero; 02-08-2015 at 00:56.
pubhero is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 02-08-2015 , 01:05   Re: Compiler error
Reply With Quote #7

Did you read this?
Quote:
We also note here some specific cases where compatibility with older scripts has been broken.
These are source-level compatibility changes only - SourceMod will continue to run scripts compiled with SourceMod 1.6 and earlier.
There's really no need to use the new compiler if you don't want to.
__________________

Last edited by Impact123; 02-08-2015 at 01:25.
Impact123 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-08-2015 , 12:31   Re: Compiler error
Reply With Quote #8

8 months of notice was apparently not enough.
__________________
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 15:41.


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