Raised This Month: $100 Target: $400
 25% 

Invalid database handle 0 (error 4)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
goose1702
New Member
Join Date: Mar 2019
Old 12-14-2019 , 18:01   Invalid database handle 0 (error 4)
Reply With Quote #1

Hey all, I am having issues related to two commands in my plugin and I can't seem to find any help for it to my specific case online

The code is attached below and the errors are here
Code:
L 12/15/2019 - 08:59:32: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 12/15/2019 - 08:59:32: [SM] Blaming: sleuth_commcheck.smx
L 12/15/2019 - 08:59:32: [SM] Call stack trace:
L 12/15/2019 - 08:59:32: [SM]   [0] SQL_Query
L 12/15/2019 - 08:59:32: [SM]   [1] Line 66, C:\Users\angus\Documents\Other Server Plugins\project1\sleuth_commcheck.sp::Command_DBIPtest
L 12/15/2019 - 08:59:37: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 12/15/2019 - 08:59:37: [SM] Blaming: sleuth_commcheck.smx
L 12/15/2019 - 08:59:37: [SM] Call stack trace:
L 12/15/2019 - 08:59:37: [SM]   [0] SQL_EscapeString
L 12/15/2019 - 08:59:37: [SM]   [1] Line 95, C:\Users\angus\Documents\Other Server Plugins\project1\sleuth_commcheck.sp::Command_DeleteFromDB
Attached Files
File Type: sp Get Plugin or Get Source (sleuth_commcheck.sp - 11 views - 4.3 KB)
goose1702 is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 12-15-2019 , 03:37   Re: Invalid database handle 0 (error 4)
Reply With Quote #2

Invalid database Handle 0 means your DB handle is INVALID_HANDLE/null.
Fyren is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 12-15-2019 , 05:56   Re: Invalid database handle 0 (error 4)
Reply With Quote #3

Might be bad DB connection. Check your sourcemod/configs/databases.cfg.
__________________

Last edited by MAGNAT2645; 12-15-2019 at 05:57.
MAGNAT2645 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:14.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode