Does anyone know why I get this error? It connects to the database and creates a table and inserts a row when the map starts but it wont insert chat messages.
PHP Code:
L 02/20/2020 - 21:35:54: SourceMod error session started
L 02/20/2020 - 21:35:54: Info (map "de_mirage") (file "/2tb/servers/111/272/csgo/addons/sourcemod/logs/errors_20200220.log")
L 02/20/2020 - 21:35:54: [turf/chatlogex.smx] ChatLogEx: Cannot log message, handle hdatabase is not set!
L 02/20/2020 - 21:35:54: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 02/20/2020 - 21:35:54: [SM] Blaming: turf/chatlogex.smx
L 02/20/2020 - 21:35:54: [SM] Call stack trace:
L 02/20/2020 - 21:35:54: [SM] [0] SQL_TQuery
L 02/20/2020 - 21:35:54: [SM] [1] Line 778, /home/forums/content/files/5/2/0/8/2/47687.attach::SendQuery
L 02/20/2020 - 21:35:54: [SM] [2] Line 386, /home/forums/content/files/5/2/0/8/2/47687.attach::CleanDB
L 02/20/2020 - 21:35:54: [SM] [3] Line 370, /home/forums/content/files/5/2/0/8/2/47687.attach::OnMapEnd
L 02/20/2020 - 21:35:55: Error log file session closed.
L 02/20/2020 - 21:35:59: SourceMod error session started
L 02/20/2020 - 21:35:59: Info (map "de_mirage") (file "/2tb/servers/111/272/csgo/addons/sourcemod/logs/errors_20200220.log")
L 02/20/2020 - 21:35:59: [SM] Exception reported: Invalid game event handle 1c10198 (error 2)
L 02/20/2020 - 21:35:59: [SM] Blaming: turf/chatlogex.smx
L 02/20/2020 - 21:35:59: [SM] Call stack trace:
L 02/20/2020 - 21:35:59: [SM] [0] GetEventString
L 02/20/2020 - 21:35:59: [SM] [1] Line 499, /home/forums/content/files/5/2/0/8/2/47687.attach::LogPlayerConnect