View Single Post
addons_zz
Veteran Member
Join Date: Aug 2015
Location: Dreams, zz
Old 02-20-2017 , 12:45   Re: [INC/STOCK] menu_set_timeout
Reply With Quote #10

Quote:
Originally Posted by OciXCrom View Post
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 View Post
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.
  1. https://github.com/alliedmodders/amxmodx/blame/master/amxmodx/newmenus.cpp
  2. 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.
__________________
Plugin: Sublime Text - ITE , Galileo
Multi-Mod: Manager / Plugin / Server

Support me on Patreon, Ko-fi, Liberapay or Open Collective

Last edited by addons_zz; 02-20-2017 at 12:47.
addons_zz is offline