Quote:
Originally Posted by OciXCrom
Even though it exists in 1.8.3, it doesn't exist in the earlier dev builds, so adding a version check might break the code. Is there a way to check the dev build with #if? The AMXX_VERSION_LOCAL_REV value is a string, so how do I check that,
|
There is anything I know of. Anyways, just check `#if AMXX_VERSION_NUM < 183` and block for all devs versions. If someone is using an old dev build, this someone should update it.
Quote:
Originally Posted by OciXCrom
and how do I know in which dev build this was added?
|
Just review the git history and find out on which commit it was added.
https://github.com/alliedmodders/amxmodx/commits/master
May be it was a pull request, so check them.
https://github.com/alliedmodders/amx...pr+is%3Aclosed
You could also find out where it is defined and do blame command on some git gui.
- https://github.com/alliedmodders/amxmodx/blame/master/amxmodx/newmenus.cpp
- https://github.com/alliedmodders/amxmodx/commits/master/amxmodx/newmenus.cpp
Reviewing the history on the second link `master/amxmodx/newmenus.cpp` above should be enough.
__________________