kusnerpark1 Posted March 12, 2012 Report Share Posted March 12, 2012 (edited) Sveiki, netieku galā ar konekciju pie mysql, lūk šeit ir sma kods http://pastebin.com/uY9upFjX LOGS [/size][/font][/color] [color=#000000][font=tahoma, verdana, arial][size=3] L 03/12/2012 - 15:24:42: [AMXX] Run time error 10 (plugin "stats_mysql.amxx") (native "get_pcvar_string") - debug not enabled! L 03/12/2012 - 15:24:42: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 03/12/2012 - 15:24:42: String formatted incorrectly - parameter 3 (total 2) L 03/12/2012 - 15:24:42: [AMXX] Run time error 25 (plugin "radio.amxx") - debug not enabled! L 03/12/2012 - 15:24:42: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 03/12/2012 - 15:24:52: [MySQL] Invalid info tuple handle: 0 L 03/12/2012 - 15:24:52: [AMXX] Run time error 10 (plugin "stats_mysql.amxx") (native "SQL_ThreadQuery") - debug not enabled! L 03/12/2012 - 15:24:52: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).[/size][/font][/color] [color=#000000][font=tahoma, verdana, arial][size=3] Datubāze: [/size][/font][/color] [color=#000000][font=tahoma, verdana, arial][size=3] CREATE TABLE IF NOT EXISTS `lol` ( `id` int(255) NOT NULL auto_increment, `lol` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;[/size][/font][/color] [color=#000000][font=tahoma, verdana, arial][size=3] Itkā es liku prikšā debug bet nekā. +sakompilēt var, bet ieejot serveri rada error Edited March 12, 2012 by kusnerpark1 Link to comment Share on other sites More sharing options...
poxa Posted March 12, 2012 Report Share Posted March 12, 2012 Pieliec debug un tad iekopē erroru, kas rādīsies logos. Link to comment Share on other sites More sharing options...
kusnerpark1 Posted March 12, 2012 Author Report Share Posted March 12, 2012 L 03/12/2012 - 17:35:17: [MySQL] Invalid info tuple handle: 0 L 03/12/2012 - 17:35:17: [AMXX] Displaying debug trace (plugin "stats_mysql.amxx") L 03/12/2012 - 17:35:17: [AMXX] Run time error 10: native error (native "SQL_ThreadQuery") L 03/12/2012 - 17:35:17: [AMXX] [0] stats_mysql.sma::calltest (line 40) Link to comment Share on other sites More sharing options...
DeimoN Posted March 12, 2012 Report Share Posted March 12, 2012 Tev nav izveidota handler'a funkcija, kas ir norādīta iekš SQL_ThreadQuery( SqlConnection, "QueryCreateTable", Query ). Tev vajag izveidot "QueryCreateTable" funkciju ar visiem nepieciešamajiem parametriem. Tutoriālis. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now