Quote:
Originally Posted by OciXCrom
What do you mean by "restore the other include files from a backup"?
|
I though your other compiler include folder was overwrite by that line.
I figured out why this error. When the script is calling the other compiler, it is passing the current folder compiler include folder as parameter, then it is shadowing the other compiler's includes with the current one.
Code:
File: .bat
121: :: To call the compiler to compile the plugin to the output folder $PLUGIN_BINARY_FILE_PATH
122: "%AMXX_COMPILER_PATH%" -i"%SOURCE_CODE_INCLUDE_FOLDER%/" -o"%PLUGIN_BINARY_FILE_PATH%" "%PLUGIN_SOURCE_CODE_FILE_PATH%"
Then, try to replace these lines on the diff:
https://github.com/evandrocoan/AmxxEditor/commit/cbede59bd9a45d1ffe90f87e6cef8d90c2952907
This is computing the other's compiler include folder and adding it before the current compiler's include, then this should fix it.
Quote:
Originally Posted by OciXCrom
Also, .inc files don't use the AMXX syntax by default when opened.
|
I am not sure why this is happening, as by default that should be working.
Anyways, you can force all files with `.inc` extension to open with the correct syntax:
- Opening a `.inc` file
- And going on the menu `View -> Syntax -> Open all with current extension as... -> Amxmodx -> AmxmodxPawn`
__________________