Page 1 of 1

AMXBans - Thread worker was unable to start (ERROR)

Posted: 2014 Jan 03 08:50
by NZT
Pradėjo mesti šią klaidą:
Info (map "de_dust2_2x2") (file "addons/amxmodx/logs/error_20131231.log")
[MySQL] Thread worker was unable to start.
[AMXX] Displaying debug trace (plugin "amxbans_main.amxx", version "6.0.3")
[AMXX] Run time error 10: native error (native "SQL_ThreadQuery")
[AMXX] [0] check_flag.inl::check_flagged (line 36)
[AMXX] [1] check_player.inl::check_player_ (line 100)
Radau kažką, bet nelabai suprantu lenkų kalba:
http://amxx.pl/topic/84719-fix-thread-w ... -to-start/

Re: AMXBans - Thread worker was unable to start (ERROR)

Posted: 2014 Jan 03 13:45
by V1LKAS
galbūt bandyk 6.0.4 ver

Re: AMXBans - Thread worker was unable to start (ERROR)

Posted: 2014 Jan 05 15:16
by NZT
Aš ir naudoju 6.0.4 (ten tik rašo 6.0.3): http://forum.amxbans.net/viewtopic.php?f=6&t=20

Papildyta
šis pluginas padėjo

Code: Select all

#include <amxmodx>#include <sqlx> #define SQL_HOST ""#define SQL_USER ""#define SQL_PASS ""#define SQL_DB "" #define USE_SQLITE  //comment this to use mysql instead#define FIX  //uncomment this to prevent thread worker error new Handle:g_sql_tuplenew bool:g_mapchange_started public plugin_init() {    register_plugin("thread worker fix test", "1.0", "Sylwester");#if defined USE_SQLITE    SQL_SetAffinity("sqlite")#else    SQL_SetAffinity("mysql")#endif    g_sql_tuple = SQL_MakeDbTuple(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB);} public plugin_end(){    log_amx("plugin_end")    SQL_ThreadQuery(g_sql_tuple, "qh_first", "SELECT 99;", "plugin_end", 11)    g_mapchange_started = true} public client_disconnect(id){    log_amx("client_disconnect %d", id)    SQL_ThreadQuery(g_sql_tuple, "qh_first", "SELECT 5;", "client_disconnect", 18)} public qh_first(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){    if(FailState){ log_amx("SQL Error (qh_first): %s", Error); return; }    log_amx("qh_first (%s): %d", Data, SQL_ReadResult(Query, 0))#if defined FIX    if(!g_mapchange_started)#endif    SQL_ThreadQuery(g_sql_tuple, "qh_second", "SELECT 11;", Data, DataSize)} public qh_second(FailState,Handle:Query,Error[],Errcode,Data[],DataSize){    if(FailState){ log_amx("SQL Error (qh_second): %s", Error); return; }    log_amx("qh_second (%s): %d", Data, SQL_ReadResult(Query, 0))}