ChatAdditions / ChatAdditions_AMXX

🎮 💬 Management of voice and text chats with rich functionality and API for AMXModX.
22 stars 21 forks source link

SQL_FreeHandle() error on map restart #149

Closed SergeyShorokhov closed 3 years ago

SergeyShorokhov commented 3 years ago
L 03/16/2021 - 00:31:36: Start of error session.
L 03/16/2021 - 00:31:36: Info (map "cs_pf_dust") (file "addons/amxmodx/logs/error_20210316.log")
L 03/16/2021 - 00:31:36: [MySQL] Invalid handle: 0
L 03/16/2021 - 00:31:36: [AMXX] Displaying debug trace (plugin "CA_Storage_GameCMS.amxx", version "v1.3.0")
L 03/16/2021 - 00:31:36: [AMXX] Run time error 10: native error (native "SQL_FreeHandle")
L 03/16/2021 - 00:31:36: [AMXX] [0] CA_Storage_GameCMS.sma::plugin_end (line 60)
afwn90cj93201nixr2e1re commented 3 years ago

its probably not a bug, but plugins order issue.

afwn90cj93201nixr2e1re commented 3 years ago

Ok, i thought you are getting raw handler from gcms api, but, yes, simply add check after this line: https://github.com/ChatAdditions/ChatAdditions_AMXX/blob/master/cstrike/addons/amxmodx/scripting/CA_Storage_GameCMS.sma#L54 , it should help.