expectant 发表于 2008-7-7 18:55:14

帮忙纠正一下错误信息,谢谢!


L 07/07/2008 - 18:04:38: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:38: Run time error 10: native error (native "SQL_PrepareQuery")
L 07/07/2008 - 18:04:41: Invalid database handle: 0
L 07/07/2008 - 18:04:41: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:41: Run time error 10: native error (native "SQL_PrepareQuery")
L 07/07/2008 - 18:04:43: Invalid database handle: 0
L 07/07/2008 - 18:04:43: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:43: Run time error 10: native error (native "SQL_PrepareQuery")
L 07/07/2008 - 18:04:44: Invalid database handle: 0
L 07/07/2008 - 18:04:44: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:44: Run time error 10: native error (native "SQL_PrepareQuery")
L 07/07/2008 - 18:04:44: Invalid database handle: 0
L 07/07/2008 - 18:04:44: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:44: Run time error 10: native error (native "SQL_PrepareQuery")
L 07/07/2008 - 18:04:45: Invalid database handle: 0
L 07/07/2008 - 18:04:45: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:45: Run time error 10: native error (native "SQL_PrepareQuery")
L 07/07/2008 - 18:04:47: Invalid database handle: 0
L 07/07/2008 - 18:04:47: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:47: Run time error 10: native error (native "SQL_PrepareQuery")
L 07/07/2008 - 18:04:48: Invalid database handle: 0
L 07/07/2008 - 18:04:48: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:48: Run time error 10: native error (native "SQL_PrepareQuery")
L 07/07/2008 - 18:04:51: Invalid database handle: 0
L 07/07/2008 - 18:04:51: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:51: Run time error 10: native error (native "SQL_PrepareQuery")
L 07/07/2008 - 18:04:55: Invalid database handle: 0
L 07/07/2008 - 18:04:55: Displaying debug trace (plugin "showstatus.amxx")
L 07/07/2008 - 18:04:55: Run time error 10: native error (native "SQL_PrepareQuery")

插件可以正常用了,但错误信息不断。帮忙看一下,谢谢!附上代码

jim_yang 发表于 2008-7-7 20:35:33

回复: 帮忙纠正一下错误信息,谢谢!

错误明摆着那不是吗,g_SqlConnection == 0了

expectant 发表于 2008-7-7 21:16:57

回复: 帮忙纠正一下错误信息,谢谢!

Post by jim_yang
错误明摆着那不是吗,g_SqlConnection == 0了
谢谢!
但不知道为何,服务器启动第一幅图,总是连不到mysql数据库,到换第二幅图就完全可以连到数据库了

jim_yang 发表于 2008-7-8 10:50:50

回复: 帮忙纠正一下错误信息,谢谢!

在plug_init里加一个延迟(set_task),然后连接
页: [1]
查看完整版本: 帮忙纠正一下错误信息,谢谢!