30.03.2012, 14:57
(
Последний раз редактировалось petrux; 30.03.2012 в 16:49.
)
Hello !
I've followed this tutorial here : Here and my script ... didn't work...
Pastebin here
My PHPMyAdmin : http://www.noelshack.com/2012-13-133...PHPMyAdmin.png
My SQL Log :
The game start , but It didn't ask for a password ...
Do you know why?
Thanks !
Edit : ... I've just forgotted to remove the "//" before "#define Force_Login // - Remove the // if you want to force a player to login and register when that player joins."
Now , I've got another problem : It say the password is not the same when I connect...
I've followed this tutorial here : Here and my script ... didn't work...
Pastebin here
My PHPMyAdmin : http://www.noelshack.com/2012-13-133...PHPMyAdmin.png
My SQL Log :
Код:
[18:40:00] [18:40:00] ** MySQL Debugging enabled (03/30/12) [18:40:00] [18:40:00] >> mysql_connect(127.0.0.1, root, samp, ******) on port 3306 [18:40:00] CMySQLHandler::CMySQLHandler() - constructor called. [18:40:00] CMySQLHandler::CMySQLHandler() - Connecting to "127.0.0.1" | DB: "samp" | Username: "root" [18:40:00] CMySQLHandler::Connect() - Connection was successful. [18:40:00] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [18:40:00] >> mysql_ping( Connection handle: 1 ) [18:40:00] CMySQLHandler::Ping() - Connection is still alive.
Do you know why?
Thanks !
Edit : ... I've just forgotted to remove the "//" before "#define Force_Login // - Remove the // if you want to force a player to login and register when that player joins."
Now , I've got another problem : It say the password is not the same when I connect...
Код:
[18:52:54] ** MySQL Debugging enabled (03/30/12) [18:52:54] [18:52:54] >> mysql_connect(127.0.0.1, root, samp, ******) on port 3306 [18:52:54] CMySQLHandler::CMySQLHandler() - constructor called. [18:52:54] CMySQLHandler::CMySQLHandler() - Connecting to "127.0.0.1" | DB: "samp" | Username: "root" [18:52:54] CMySQLHandler::Connect() - Connection was successful. [18:52:54] CMySQLHandler::Connect() - Auto-Reconnect has been enabled. [18:52:54] >> mysql_ping( Connection handle: 1 ) [18:52:54] CMySQLHandler::Ping() - Connection is still alive. [18:53:13] >> mysql_query_callback( Connection handle: 1 ) [18:53:13] >> mysql_store_result( Connection handle: 1 ) [18:53:13] CMySQLHandler::StoreResult() - No data to store. [18:53:13] >> mysql_num_rows( Connection handle: 1 ) [18:53:13] CMySQLHandler::NumRows() - You cannot call this function now. (Reason: Dead Connection) [18:53:13] >> mysql_free_result( Connection handle: 1 ) [18:53:13] CMySQLHandler::FreeResult() - The result is already empty. [18:53:13] Passing query SELECT * FROM samptable WHERE Name = 'Player' | siii [18:53:13] CMySQLHandler::ProcessQueryThread() - Error will be triggered to OnQueryError() [18:53:15] >> mysql_real_escape_string( Connection handle: 1 ) [18:53:15] CMySQLHandler::EscapeString(a); - Escaped 1 characters to a. [18:53:15] >> mysql_query_callback( Connection handle: 1 ) [18:53:15] Passing query INSERT INTO samptable (Name, Password, IP, Money, AdminLevel, Health, Armour, Bank) VALUES('Player', md5('a'), '127.0.0.1', 0, 0, '0.000000', '0.000000', 0) | siii [18:53:15] CMySQLHandler::ProcessQueryThread() - Error will be triggered to OnQueryError() [18:53:16] >> mysql_real_escape_string( Connection handle: 1 ) [18:53:16] CMySQLHandler::EscapeString(a); - Escaped 1 characters to a. [18:53:16] >> mysql_query_callback( Connection handle: 1 ) [18:53:16] >> mysql_store_result( Connection handle: 1 ) [18:53:16] CMySQLHandler::StoreResult() - No data to store. [18:53:16] >> mysql_num_rows( Connection handle: 1 ) [18:53:16] CMySQLHandler::NumRows() - You cannot call this function now. (Reason: Dead Connection) [18:53:16] Passing query SELECT * FROM samptable WHERE Name = 'Player' AND Password = md5('a') LIMIT 1 | siii [18:53:16] CMySQLHandler::ProcessQueryThread() - Error will be triggered to OnQueryError() [18:53:18] >> mysql_query_callback( Connection handle: 1 ) [18:53:18] Passing query UPDATE samptable SET Money = 0, AdminLevel = 0, Health = 0.000000, Armour = 0.000000, Bank = 0 WHERE Name = 'Player' | siii [18:53:18] CMySQLHandler::ProcessQueryThread() - Error will be triggered to OnQueryError()