Ja igen...Azt elfelejtettem még mondani, hogy teljesen kezdõ vagyok MySQL terén, úgyhogy bocsáss meg, hogy megkérdezem, de milyen kódra célzol? :D A MySQL logra, mert azt betudom másolni, vagy a teljes .pwn kódra? Mivel az szinte szó szerint megegyezik most a Kurta regisztrációs-rendszerével.
MySQL log:
[20:20:13]
[20:20:13] ** MySQL Debugging enabled (01/26/13)
[20:20:13]
[20:20:13] >> mysql_connect(localhost, root, samp, ******) on port 3306
[20:20:13] CMySQLHandler::CMySQLHandler() - constructor called.
[20:20:13] CMySQLHandler::CMySQLHandler() - Connecting to \"localhost\" | DB: \"samp\" | Username: \"root\"
[20:20:13] CMySQLHandler::Connect() - Connection was successful.
[20:20:13] CMySQLHandler::Connect() - Auto-Reconnect has been enabled.
[20:20:13] >> mysql_ping( Connection handle: 1 )
[20:20:13] CMySQLHandler::Ping() - Connection is still alive.
[20:20:41] >> mysql_query_callback( Connection handle: 1 )
[20:20:41] Passing query SELECT `reg_id` FROM `players` WHERE `name` = \'Harsa\' | dd
[20:20:41] ProcessQueryThread(THREAD_OnPlayerConnect) - Query was successful. (SELECT `reg_id` FROM `players` WHERE `name` = \'Harsa\')
[20:20:41] ProcessQueryThread(THREAD_OnPlayerConnect) - Data caching enabled.
[20:20:41] CMySQLHandler::StoreResult() - Result was stored.
[20:20:41] CMySQLHandler::FreeResult() - Result was successfully free\'d.
[20:20:41] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[20:20:41] THREAD_OnPlayerConnect(dd) - Threaded function called.
[20:20:41] >> mysql_query_callback( Connection handle: 1 )
[20:20:41] >> mysql_query_callback( Connection handle: 1 )
[20:20:41] ProcessTick() - The cache has been cleared.
[20:20:41] Passing query INSERT INTO `connections`(id, name, ip, serial, time) VALUES(0, \'Harsa\', \'192.168.1.65\', \'DE4ECC49C8C08E4C5AAC4E9594999E989999E49D\', \'2013.01.26/20.20.41\') |
[20:20:41] ProcessQueryThread(OnQueryFinish) - Query was successful. (INSERT INTO `connections`(id, name, ip, serial, time) VALUES(0, \'Harsa\', \'192.168.1.65\', \'DE4ECC49C8C08E4C5AAC4E9594999E989999E49D\', \'2013.01.26/20.20.41\'))
[20:20:41] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[20:20:41] OnQueryFinish() - Threaded function called.
[20:20:41] Passing query SELECT * FROM `players` WHERE `name` = \'Harsa\' AND `ip` = \'192.168.1.65\' | dd
[20:20:41] ProcessQueryThread(THREAD_Autologin) - Query was successful. (SELECT * FROM `players` WHERE `name` = \'Harsa\' AND `ip` = \'192.168.1.65\')
[20:20:41] ProcessQueryThread(THREAD_Autologin) - Data caching enabled.
[20:20:41] CMySQLHandler::StoreResult() - Result was stored.
[20:20:41] CMySQLHandler::FreeResult() - Result was successfully free\'d.
[20:20:41] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[20:20:41] THREAD_Autologin(dd) - Threaded function called.
[20:20:41] >> cache_get_data( Connection handle: 1 )
[20:20:41] ProcessTick() - The cache has been cleared.
[20:21:03] >> mysql_query_callback( Connection handle: 1 )
[20:21:03] Passing query SELECT `reg_id` FROM `players` WHERE `name` = \'Harsa\' | dsd
[20:21:03] ProcessQueryThread(THREAD_Register_1) - Query was successful. (SELECT `reg_id` FROM `players` WHERE `name` = \'Harsa\')
[20:21:03] ProcessQueryThread(THREAD_Register_1) - Data caching enabled.
[20:21:03] CMySQLHandler::StoreResult() - Result was stored.
[20:21:03] CMySQLHandler::FreeResult() - Result was successfully free\'d.
[20:21:03] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[20:21:03] THREAD_Register_1(dsd) - Threaded function called.
[20:21:03] >> cache_get_data( Connection handle: 1 )
[20:21:03] >> mysql_real_escape_string( Connection handle: 1 )
[20:21:03] CMySQLHandler::EscapeString(TesztJelszó); - Escaped 11 characters to TesztJelszó.
[20:21:03] >> mysql_query_callback( Connection handle: 1 )
[20:21:03] ProcessTick() - The cache has been cleared.
[20:21:03] Passing query INSERT INTO `players`(reg_id, name, ip, pass, reg_date, laston) VALUES(0, \'Harsa\', \'192.168.1.65\', \'TesztJelszó\', \'2013.01.26/20.21.03\', \'2013.01.26/20.21.03\') | dsd
[20:21:03] ProcessQueryThread(THREAD_Register_2) - Query was successful. (INSERT INTO `players`(reg_id, name, ip, pass, reg_date, laston) VALUES(0, \'Harsa\', \'192.168.1.65\', \'TesztJelszó\', \'2013.01.26/20.21.03\', \'2013.01.26/20.21.03\'))
[20:21:03] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[20:21:03] THREAD_Register_2(dsd) - Threaded function called.
[20:21:03] >> mysql_insert_id( Connection handle: 1 )
//Eddig volt a regisztráció, most jön a betöltés..amiután kifagy a szerver![20:23:41] >> mysql_query_callback( Connection handle: 1 )
[20:23:41] Passing query SELECT `reg_id` FROM `players` WHERE `name` = \'Harsa\' | dd
[20:23:41] ProcessQueryThread(THREAD_OnPlayerConnect) - Query was successful. (SELECT `reg_id` FROM `players` WHERE `name` = \'Harsa\')
[20:23:41] ProcessQueryThread(THREAD_OnPlayerConnect) - Data caching enabled.
[20:23:41] CMySQLHandler::StoreResult() - Result was stored.
[20:23:41] CMySQLHandler::FreeResult() - Result was successfully free\'d.
[20:23:41] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[20:23:41] THREAD_OnPlayerConnect(dd) - Threaded function called.
[20:23:41] >> mysql_query_callback( Connection handle: 1 )
[20:23:41] >> mysql_query_callback( Connection handle: 1 )
[20:23:41] ProcessTick() - The cache has been cleared.
[20:23:41] Passing query INSERT INTO `connections`(id, name, ip, serial, time) VALUES(0, \'Harsa\', \'192.168.1.65\', \'DE4ECC49C8C08E4C5AAC4E9594999E989999E49D\', \'2013.01.26/20.23.41\') |
[20:23:41] ProcessQueryThread(OnQueryFinish) - Query was successful. (INSERT INTO `connections`(id, name, ip, serial, time) VALUES(0, \'Harsa\', \'192.168.1.65\', \'DE4ECC49C8C08E4C5AAC4E9594999E989999E49D\', \'2013.01.26/20.23.41\'))
[20:23:41] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[20:23:41] OnQueryFinish() - Threaded function called.
[20:23:41] Passing query SELECT * FROM `players` WHERE `name` = \'Harsa\' AND `ip` = \'192.168.1.65\' | dd
[20:23:41] ProcessQueryThread(THREAD_Autologin) - Query was successful. (SELECT * FROM `players` WHERE `name` = \'Harsa\' AND `ip` = \'192.168.1.65\')
[20:23:41] ProcessQueryThread(THREAD_Autologin) - Data caching enabled.
[20:23:41] CMySQLHandler::StoreResult() - Result was stored.
[20:23:41] CMySQLHandler::FreeResult() - Result was successfully free\'d.
[20:23:41] CMySQLHandler::ProcessQueryThread() - Data is getting passed to ->ProcessTick()
[20:23:41] THREAD_Autologin(dd) - Threaded function called.
[20:23:41] >> cache_get_data( Connection handle: 1 )
//és itt fagyott ki!