Quote:
|
Originally Posted by eightn
I can't compile this plugin under Linux with AMXX 0.16 steam:
setup.cfg default settings,
changed only #define AMXX_ENABLED 1
Code:
./sc war3x.sma
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase
war3x/motd.inl(228) : warning 213: tag mismatch
war3x/motd.inl(240) : warning 213: tag mismatch
war3x/shared.inl(2370) : warning 213: tag mismatch
war3x/shared.inl(2390) : warning 213: tag mismatch
war3x/shared.inl(2611) : error 025: function heading differs from prototype
1 Error.
setup.cfg default settings,
changed only
#define AMXX_ENABLED 1
#define MYSQL_ENABLED 1
Code:
./sc war3x.sma
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase
/home/hlds/cstrike/addons/amxx/scripting/./include/engine_stocks.inc(15) : error 025: function
heading differs from prototype
1 Error.
I want to use War3x with amxx and mysql support ;-)
|
Ok I had this same problem a few months back with version 2.1.0 of the compiler under windows, and to fix it all i did was upgrade to the latest version (2.6.0) of the compiler (you can do this with amxx 0.16, though i'm not sure about 0.20 because of AMXXSC), however, you will additionally need to uncomment line 72 of war3x.sma, the line that reads:
Code:
// #pragma ctrlchar '^'
should now read
Code:
#pragma ctrlchar '^'
This is because the control character for version 2.6.0 was changed to the '\' character by default, so all menu-based strings (show_menu) with color/right align codes (\y,\w,\r,\R) gave errors.
grab the latest version at the official SMALL website here:
http://www.compuphase.com/small.htm
Don't ask me why but after i made all the fixes to the plugin with this version of the compiler, it then successfully compiled under windows and the 2.1.0 compiler.
Please report back when you get a chance I'd like to know if this fixed your problem.
__________________