Ostatnio crashuje mi się serwer.
W error_logach znalazłem:
Start of error session. Info (map "de_dust2") (file "addons/amxmodx/logs/error_20101229.log") [MySQL] Invalid handle: 0 [AMXX] Run time error 10 (plugin "amxbans.amxx") (native "SQL_FreeHandle") - debug not enabled! [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Poszukałem troche na forach i znalazłem żeby zmienić funkcję plugin_end() na:
public plugin_end() { if (g_SqlX) SQL_FreeHandle(g_SqlX) }
Skompilowałem i wgrałem...
Nie pojawia się już ten błąd w logach ale teraz w errorach mam:
L 01/23/2011 - 19:10:20: Invalid player id -124 L 01/23/2011 - 19:10:20: [AMXX] Run time error 10 (plugin "amxbans.amxx") (native "get_user_flags") - debug not enabled! L 01/23/2011 - 19:10:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/23/2011 - 19:10:20: Invalid player id -252 L 01/23/2011 - 19:10:20: [AMXX] Run time error 10 (plugin "amxbans.amxx") (native "client_cmd") - debug not enabled! L 01/23/2011 - 19:10:20: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/23/2011 - 19:10:22: Invalid player id -125 L 01/23/2011 - 19:10:22: [AMXX] Run time error 10 (plugin "amxbans.amxx") (native "get_user_flags") - debug not enabled! L 01/23/2011 - 19:10:22: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/23/2011 - 19:10:22: Invalid player id -253 L 01/23/2011 - 19:10:22: [AMXX] Run time error 10 (plugin "amxbans.amxx") (native "client_cmd") - debug not enabled! L 01/23/2011 - 19:10:22: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/23/2011 - 19:10:41: Invalid player id -115 L 01/23/2011 - 19:10:41: [AMXX] Run time error 10 (plugin "amxbans.amxx") (native "get_user_flags") - debug not enabled! L 01/23/2011 - 19:10:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes). L 01/23/2011 - 19:10:41: Invalid player id -243 L 01/23/2011 - 19:10:41: [AMXX] Run time error 10 (plugin "amxbans.amxx") (native "client_cmd") - debug not enabled! L 01/23/2011 - 19:10:41: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Wersja AMXX: 1.8.1
Steam/NS
dproto v0.4.7
plugins.ini
; AMX Mod X plugins ;AmxBans ; Admin Base - Always one has to be activated admin.amxx ; admin base (required for any admin-related) ;admin_sql.amxx ; admin base - SQL version (comment admin.amxx) amxbans.amxx ;AMXBans ; Basic admincmd.amxx ; basic admin console commands adminhelp.amxx ; help command for admin console commands adminslots.amxx ; slot reservation multilingual.amxx ; Multi-Lingual management ; Menus menufront.amxx ; front-end for admin menus cmdmenu.amxx ; command menu (speech, settings) plmenu.amxx ; players menu (kick, ban, client cmds.) ;telemenu.amxx ; teleport menu (Fun Module required!) mapsmenu.amxx ; maps menu (vote, changelevel) pluginmenu.amxx ; Menus for commands/cvars organized by plugin ; Chat / Messages adminchat.amxx ; console chat commands antiflood.amxx ; prevent clients from chat-flooding the server scrollmsg.amxx ; displays a scrolling message imessage.amxx ; displays information messages adminvote.amxx ; vote commands ; Map related nextmap.amxx ; displays next map in mapcycle ;mapchooser.amxx ; allows to vote for next map timeleft.amxx ; displays time left on map ; Configuration pausecfg.amxx ; allows to pause and unpause some plugins statscfg.amxx ; allows to manage stats plugins via menu and commands ; Counter-Strike restmenu.amxx ; restrict weapons menu statsx.amxx ; stats on death or round end (CSX Module required!) ;miscstats.amxx ; bunch of events announcement for Counter-Strike ;stats_logging.amxx ; weapons stats logging (CSX Module required!) ; Enable to use AMX Mod plugins ;amxmod_compat.amxx ; AMX Mod backwards compatibility layer ; Custom - Add 3rd party plugins here ad_manager.amxx ptb.amxx reasonkicker.amxx afkkicker.amxx allow_round_finish.amxx alt_end_round_sounds.amxx bulletdamage.amxx Galileo.amxx FreeDefuserkit.amxx extreme_bancfg.amxx ultimate_ss.amxx xredirect.amxx sam.amxx poprawne_rate.amxx amx_record.amxx admin_freelook.amxx admin_spec_esp.amxx amx_ip.amxx simple_redirect.amxx motd.amxx
modules.ini
;;; ; To enable a module, remove the semi-colon (<img src='http://images.amxx.pl/public/style_emoticons/<#EMO_DIR#>/wink.gif' class='bbc_emoticon' alt=';)' /> in front of its name. ; If it's not here, simply add it its name, one per line. ; You don't need to write the _amxx part or the file extension. ;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; SQL Modules usually need to be enabled manually ;; ;; You can have any number on at a time. Use ;; ;; amx_sql_type in sql.cfg to specify the default ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; mysql sqlite ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Put third party modules below here. ;; ;; You can just list their names, without the _amxx ;; ;; or file extension. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; These modules will be auto-detected and loaded ;; ;; as needed. You do not need to enable them here ;; ;; unless you have problems. ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; fun engine fakemeta hamsandwich geoip sockets regex nvault cstrike csx ;csdm
sql.cfg w załączniku