По логу вроде бы сохранение идет нормально.
Но в БД нету созданного аккаунта. Как быть ?
Цитата
[17:23:00] >> mysql_connect(localhost, root, samp, ******) on port 3306
[17:23:00] CMySQLHandler::CMySQLHandler() - constructor called.
[17:23:00] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "samp" | Username: "root"
[17:23:00] CMySQLHandler::Connect() - Connection was successful.
[17:23:00] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.
[17:23:00] >> mysql_ping( Connection handle: 1 )
[17:23:00] CMySQLHandler::Ping() - Connection is still alive.
[17:23:00]
[17:23:00] ** MySQL Debugging enabled (05/11/17)
[17:23:00]
[17:23:09] >> mysql_query_callback( Connection handle: 1 )
[17:23:09] Passing query SELECT `id` FROM `accounts` WHERE `name` = 'Nick_Name' | ii
[17:23:09] ProcessQueryThread(player_check) - Query was successful. (SELECT `id` FROM `accounts` WHERE `name` = 'Nick_Name')
[17:23:09] ProcessQueryThread(player_check) - Data caching enabled.
[17:23:09] CMySQLHandler::StoreResult() - Result was stored.
[17:23:09] CMySQLHandler::FreeResult() - Result was successfully free'd.
[17:23:09] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[17:23:09] player_check(ii) - Threaded function called.
[17:23:09] >> cache_get_data( Connection handle: 1 )
[17:23:09] ProcessTick() - The cache has been cleared.
[17:23:12] >> mysql_real_escape_string( Connection handle: 1 )
[17:23:12] CMySQLHandler::EscapeString(sakura); - Escaped 6 characters to sakura.
[17:23:12] >> mysql_query_callback( Connection handle: 1 )
[17:23:12] >> mysql_query_callback( Connection handle: 1 )
[17:23:12] Passing query INSERT INTO `accounts` (`login`, `password`, `regdata`, `regip`) VALUES ('Nick_Name','sakura','12.05.2017','10.9.249.135') |
[17:23:12] CMySQLHandler::ProcessQueryThread() - Error will be triggered to OnQueryError()
[17:23:12] OnQueryError() - Called.
[17:23:12] Passing query SELECT * FROM `accounts` WHERE `login` = 'Nick_Name' AND `password` = 'sakura' LIMIT 1 | i
[17:23:12] CMySQLHandler::ProcessQueryThread() - Error will be triggered to OnQueryError()
[17:23:12] OnQueryError() - Called.
[17:23:19] >> mysql_real_escape_string( Connection handle: 1 )
[17:23:19] CMySQLHandler::EscapeString(emailEmail); - Escaped 10 characters to emailEmail.
[17:23:34] >> mysql_query_callback( Connection handle: 1 )
[17:23:34] Passing query UPDATE `accounts` SET `email` = 'emailEmail', `sex` = '1', `admin` = '0' WHERE `id` = '0' LIMIT 1 |
[17:23:34] ProcessQueryThread() - Query was successful. (UPDATE `accounts` SET `email` = 'emailEmail', `sex` = '1', `admin` = '0' WHERE `id` = '0' LIMIT 1)
[17:23:34] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[17:23:34] () - Threaded function called.