07.04.2011, 12:03
hey, I do not understand why an error here..
Mysql_Log Error:
What's wrong? Thank you..
Код:
CMD:email( playerid, params[] ) { new String[ 128 ], Vardas[ MAX_PLAYER_NAME ], Email [ 256 ] ; if( sscanf( params, "ss", Email, isnull ( params ) ) ) return SendClientMessage(playerid, -1, ""HEX_RAUDONA"- "HEX_BALTA"/email [EMAIL] [PRISIJUGNIMO_SLAPTAZODIS]"); GetPlayerName( playerid, Vardas, sizeof( Vardas ) ); format ( String, sizeof( String ), "INSERT INTO `Email_Adresai` (Prisijungimo_Vardas, Email_Slaptazodis, Email) VALUES ('%s', '%s' , '%s')" ,Vardas, params, Email ); mysql_query ( String ); SendClientMessage( playerid, -1, " "HEX_RAUDONA"- "HEX_BALTA"--" ); return 1; }
Код:
[22:10:55] CMySQLHandler::Query(INSERT INTO `Email_Adresai` (Prisijungimo_Vardas, Email_Slaptazodis, Email) VALUES ('oooooo', md5 ( 'renisil@inbox.lt lolas' ),) - An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1)