Quote:
Originally Posted by crazydog
sm_ptt_database doesn't work?
The default database is not hardcoded anywhere.
These two commands set up the database location:
Code:
GetConVarString(sm_ptt_database, pttDatabase, sizeof(pttDatabase))
SQL_TConnect(DBConnect, pttDatabase)
So it uses whatever connection you set in sm_ptt_database, at least it should!
|
I see the same issue, but i can not connect at all.
I get this error:
Code:
L 09/29/2011 - 00:46:50: [ptt.smx] Error! Could not find database conf "default"
L 09/29/2011 - 00:46:58: [ptt.smx] [PTT] ERROR: Could not connect to SQL database! (Configuration "default" not found)
L 09/29/2011 - 00:46:58: [SM] Native "CloseHandle" reported: Handle 0 is invalid (error 4)
L 09/29/2011 - 00:46:58: [SM] Displaying call stack trace for plugin "ptt.smx":
L 09/29/2011 - 00:46:58: [SM] [0] Line 470, ptt.sp::OnClientPostAdminCheck()
L 09/29/2011 - 00:46:59: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 09/29/2011 - 00:46:59: [SM] Displaying call stack trace for plugin "ptt.smx":
L 09/29/2011 - 00:46:59: [SM] [0] Line 603, ptt.sp::Queries()
L 09/29/2011 - 00:46:59: [SM] [1] Line 581, ptt.sp::UpdateTimes()
L 09/29/2011 - 00:47:04: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 09/29/2011 - 00:47:04: [SM] Displaying call stack trace for plugin "ptt.smx":
L 09/29/2011 - 00:47:04: [SM] [0] Line 603, ptt.sp::Queries()
L 09/29/2011 - 00:47:04: [SM] [1] Line 581, ptt.sp::UpdateTimes()
with alot of this afterwards.
Code:
L 09/29/2011 - 00:46:59: [SM] Displaying call stack trace for plugin "ptt.smx":
L 09/29/2011 - 00:46:59: [SM] [0] Line 603, ptt.sp::Queries()
L 09/29/2011 - 00:46:59: [SM] [1] Line 581, ptt.sp::UpdateTimes()
L 09/29/2011 - 00:47:04: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 09/29/2011 - 00:47:04: [SM] Displaying call stack trace for plugin "ptt.smx":
L 09/29/2011 - 00:47:04: [SM] [0] Line 603, ptt.sp::Queries()
L 09/29/2011 - 00:47:04: [SM] [1] Line 581, ptt.sp::UpdateTimes()
That error is using my custom name (ptt), and also trying with default in the plugin.ptt.cfg. Same Results.
I know it's not a connection issue as i have created a few other db's on there for other plugins. (hlstatsx, sourcebans, ect..)
Is there something maybe i'm missing?
I noticed in the "ptt.sp" you have this, but i can seem to find the txt file anywhere.
Code:
* 3) Download and place ptt.txt into your addons/sourcemod/data/ directory
__________________