In version 2.50.42 or earlier, if a plugin returns
PLUGIN_FAILURE from its plugin_init() function,
adminmod continues to try to call the plugin_connect,
plugin_info and other event handlers even though it has
unloaded the plugin and pAmx is NULL. This fills the
log files with needless error messages throughout the
game along the lines of:
L 08/06/2002 - 23:57:10: [ADMIN] ERROR:
CPlugin::HandleCommand called when no AMX present
for plugin 'J:\Games\Half-
Life\cstrike\dlls\plugin_blatt_map.amx'.
To resolve, move the following lines from
CPlugin::InitValues to the top of CPlugin::Cleanup() in
CPlugin.cpp
m_iEventCommandIndex = INVALID_INDEX;
m_iEventConnectIndex = INVALID_INDEX;
m_iEventDisconnectIndex = INVALID_INDEX;
m_iEventInfoIndex = INVALID_INDEX;
m_iEventLogIndex = INVALID_INDEX;
Logged In: YES
user_id=18453
Am I right in assuming that after .42 this problem has gone
away? cause the code seems to suggest that.