Projects
AGS Editor | Scripts | #else command not working, but marked as a proper one |
---|---|---|
Crimson Wizard | In AGS Script "#else" preprocessor definition does not work, at all. If you do following - [code=ags] #ifdef DEFINE_SOMETHING < code > #else < different code > #endif [/code] "#else" will be treated as a part of "#ifdef" block. However, #else is marked out by script editor as if it were a proper preprocessor definition. Solutions: 1) Quick fix: stop marking it out as a known script command; 2) Properly implement #else preprocessor command. |