AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Invalid database handle 0 (error 4) (https://forums.alliedmods.net/showthread.php?t=320308)

goose1702 12-14-2019 17:01

Invalid database handle 0 (error 4)
 
1 Attachment(s)
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


Fyren 12-15-2019 02:37

Re: Invalid database handle 0 (error 4)
 
Invalid database Handle 0 means your DB handle is INVALID_HANDLE/null.

MAGNAT2645 12-15-2019 04:56

Re: Invalid database handle 0 (error 4)
 
Might be bad DB connection. Check your sourcemod/configs/databases.cfg.


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

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.