D1mka5592
Умник
Здравствуйте! Проблема в том, что сервер крашиться, вот что пишется в логе:
Паблик, который пишется в логе:
Mysql_Log
PHP:
[debug] [12:38:28] [debug] Server crashed while executing Register.amx
[12:38:28] [debug] AMX backtrace:
[12:38:28] [debug] #0 native fputchar () [00405830] from samp-server.exe
[12:38:28] [debug] #1 0003b580 in ?? () from Register.amx
[12:38:28] [debug] #2 000350f8 in public OnQueryError () from Register.amx
[12:38:28] [debug] System backtrace:
[12:38:28] [debug] #0 00493990 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #1 0040586e in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #2 67ac39e2 in ?? () from C:\Users\PingerS\Desktop\Gamemode\plugins\crashdetect.DLL
[12:38:28] [debug] #3 67ac5e26 in ?? () from C:\Users\PingerS\Desktop\Gamemode\plugins\crashdetect.DLL
[12:38:28] [debug] #4 67abbf3f in ?? () from C:\Users\PingerS\Desktop\Gamemode\plugins\crashdetect.DLL
[12:38:28] [debug] #5 67ac3a0e in ?? () from C:\Users\PingerS\Desktop\Gamemode\plugins\crashdetect.DLL
[12:38:28] [debug] #6 6a2e7872 in ?? () from C:\Users\PingerS\Desktop\Gamemode\plugins\mysql.DLL
[12:38:28] [debug] #7 004691b6 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #8 004877cb in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #9 00496281 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #10 00496291 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #11 ffc30000 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #12 e8042474 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #13 ffffffbf in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #14 c01bd8f7 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #15 4859d8f7 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #16 247c83c3 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #17 06740008 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #18 412d01c6 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #19 8b56d8f7 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #20 f7d233f1 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #21 83082474 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #22 057609fa in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #23 eb57c280 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #24 30c28003 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #25 85411188 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #26 c6e677c0 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #27 8a490001 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #28 88018a16 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #29 06884911 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #30 72f13b46 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #31 55c35ef2 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #32 7d83ec8b in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #33 458b0a10 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #34 850a7508 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #35 6a067dc0 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #36 eb0a6a01 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #37 ff006a05 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #38 4d8b1075 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #39 ff9fe80c in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #40 458bffff in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #41 5d59590c in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #42 244c8bc3 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #43 24448b08 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #44 ff006a04 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #45 e8102474 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #46 ffffff85 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #47 1024448b in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
[12:38:28] [debug] #48 e8c35959 in ?? () from C:\Users\PingerS\Desktop\Gamemode\samp-server.exe
PHP:
public OnQueryError(errorid, error[], callback[], query[], connectionHandle) return WriteLog("/MySQL/Errors.txt", error), WriteLog("/MySQL/Errors.txt", callback), WriteLog("/MySQL/Errors.txt", query);
PHP:
[12:37:50] Plugin succesfully loaded!
[12:37:50] >> mysql_connect(localhost, test.gamemodes, gamemode.new, ***) on port 3306
[12:37:50] CMySQLHandler::CMySQLHandler() - constructor called.
[12:37:50] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "gamemode.new" | Username: "test.gamemodes"...
[12:37:50] CMySQLHandler::Connect() - Connection was successful.
[12:37:50] CMySQLHandler::Connect() - Auto-reconnect has been enabled.
[12:37:50] >> mysql_query_callback(Connection handle: 1)
[12:37:50] >> mysql_ping(Connection handle: 1)
[12:37:50] CMySQLHandler::Ping() - Connection is still alive.
[12:37:50] ProcessQueryThread(OnLoadSpawn) - Executing query SELECT * FROM `SpawnAndFraction`...
[12:37:50] ProcessQueryThread(OnLoadSpawn) - Query was successful.
[12:37:50] ProcessQueryThread(OnLoadSpawn) - Data caching enabled.
[12:37:50] CMySQLHandler::StoreResult() - Result was stored.
[12:37:50] CMySQLHandler::FreeResult() - Result was successfully freed.
[12:37:50] ProcessQueryThread(OnLoadSpawn) - Data being passed to ProcessTick().
[12:37:50] OnLoadSpawn() - Callback is being called...
[12:37:50] >> cache_get_data(Connection handle: 1)
[12:37:50] >> mysql_store_result(Connection handle: 1)
[12:37:50] CMySQLHandler::StoreResult() - No data to store.
[12:37:50] >> mysql_retrieve_row(Connection handle: 1)
[12:37:50] CMySQLHandler::RetrieveRow() - You cannot call this function now (no result).
[12:37:50] ProcessTick() - The cache has been cleared.
[12:38:11] >> mysql_query_callback(Connection handle: 1)
[12:38:11] >> mysql_query_callback(Connection handle: 1)
[12:38:11] >> mysql_query_callback(Connection handle: 1)
[12:38:11] ProcessQueryThread(OnPlayerCheck) - Executing query SELECT * FROM `Account` WHERE `Name` = 'Dimok_Luciano'...
[12:38:11] ProcessQueryThread(OnPlayerCheck) - Query was successful.
[12:38:11] ProcessQueryThread(OnPlayerCheck) - Data being passed to ProcessTick().
[12:38:11] OnPlayerCheck(siii) - Callback is being called...
[12:38:11] >> mysql_store_result(Connection handle: 1)
[12:38:11] CMySQLHandler::StoreResult() - Result was stored.
[12:38:11] >> mysql_num_rows(Connection handle: 1)
[12:38:11] CMySQLHandler::NumRows() - Returned 1 row(s).
[12:38:11] >> mysql_free_result(Connection handle: 1)
[12:38:11] CMySQLHandler::FreeResult() - Result was successfully freed.
[12:38:11] ProcessQueryThread(CheckBanList) - Executing query SELECT * FROM `BanList` WHERE Nick = 'Dimok_Luciano'...
[12:38:11] ProcessQueryThread(CheckBanList) - Query was successful.
[12:38:11] ProcessQueryThread(CheckBanList) - Data being passed to ProcessTick().
[12:38:11] CheckBanList(siii) - Callback is being called...
[12:38:11] >> mysql_store_result(Connection handle: 1)
[12:38:11] CMySQLHandler::StoreResult() - Result was stored.
[12:38:11] >> mysql_num_rows(Connection handle: 1)
[12:38:11] CMySQLHandler::NumRows() - Returned 0 row(s).
[12:38:11] >> mysql_free_result(Connection handle: 1)
[12:38:11] CMySQLHandler::FreeResult() - Result was successfully freed.
[12:38:11] ProcessQueryThread(CheckBanListIp) - Executing query SELECT * FROM `BanList` WHERE IP = '10.22.206.246'...
[12:38:11] ProcessQueryThread(CheckBanListIp) - Query was successful.
[12:38:11] ProcessQueryThread(CheckBanListIp) - Data being passed to ProcessTick().
[12:38:11] CheckBanListIp(siii) - Callback is being called...
[12:38:11] >> mysql_store_result(Connection handle: 1)
[12:38:11] CMySQLHandler::StoreResult() - Result was stored.
[12:38:11] >> mysql_num_rows(Connection handle: 1)
[12:38:11] CMySQLHandler::NumRows() - Returned 0 row(s).
[12:38:11] >> mysql_free_result(Connection handle: 1)
[12:38:11] CMySQLHandler::FreeResult() - Result was successfully freed.
[12:38:16] >> mysql_query_callback(Connection handle: 1)
[12:38:16] ProcessQueryThread(OnPlayerLogin) - Executing query SELECT * FROM `Account` WHERE `Name` = 'Dimok_Luciano' AND `Password` = '10221525'...
[12:38:16] ProcessQueryThread(OnPlayerLogin) - Query was successful.
[12:38:16] ProcessQueryThread(OnPlayerLogin) - Data being passed to ProcessTick().
[12:38:16] OnPlayerLogin(siii) - Callback is being called...
[12:38:16] >> mysql_store_result(Connection handle: 1)
[12:38:16] CMySQLHandler::StoreResult() - Result was stored.
[12:38:16] >> mysql_num_rows(Connection handle: 1)
[12:38:16] CMySQLHandler::NumRows() - Returned 1 row(s).
[12:38:16] >> mysql_retrieve_row(Connection handle: 1)
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Email") - Sn1ker6@yandex.ru.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("ID") - 1.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Money") - 1.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Kills") - 105.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Deaths") - 41.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Admin") - 10.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Skin") - 29.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Sex") - 0.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Fraction") - 8.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Leader") - 8.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Rank") - 20.
[12:38:16] >> mysql_fetch_field_row(Connection handle: 1)
[12:38:16] CMySQLHandler::FetchField("Job") - Field doesn't exist.
[12:38:16] >> mysql_free_result(Connection handle: 1)
[12:38:16] CMySQLHandler::FreeResult() - Result was successfully freed.
[12:38:28] >> mysql_query_callback(Connection handle: 1)
[12:38:28] ProcessQueryThread(OnQueryFinish) - Executing query UPDATE `Account` SET `Money` = '1', `Kills` = '105', `Deaths` = '41', `Admin` = '10', `Skin` = '288', `Sex` = '0', `Fraction` = '1', `Leader` = '1', `Rank` = '20', `Job` = '0' WHERE `ID` = 1...
[12:38:28] ProcessQueryThread(OnQueryFinish) - Error will be triggered to OnQueryError().
[12:38:28] OnQueryError() - Callback has been called.
