Bugzilla – Bug 3393
The compiler fails to do backwards-detection of constant variables.
Last modified: 2013-06-17 05:17:50 PDT
The following plugin cannot be compiled. The compiler says that the second line "Must be a constant expression", although the variable MAX_MENU_UPDATE_RATE is constant. #include <amxmodx> const Float:MAX_MENU_UPDATE_RATE=10.0; // In updates per second const Float:MIN_MENU_UPDATE_DELAY=1.0/MAX_MENU_UPDATE_RATE; public plugin_init() {}
declare it as below new const Float: