29.03.2016, 18:13
Hola a todos tengo un problema al cambiar la contraseсa , la funcion que ocupo encripta la contraseсa pero no la guarda lo raro es que si no la encripto la guarda correctamente, no tengo la menor idea de porque pasa esto si me pudiesen ayudar se los agradeceria .
pawn Код:
[14:58:59] [DEBUG] mysql_format - connection: 1, len: 1000, format: "UPDATE `accounts` SET `Password` = `%e` WHERE `ID` = `%d`"
[14:58:59] [DEBUG] mysql_tquery - connection: 1, query: "UPDATE `accounts` SET `Password` = `C00BD7768688D5DB511AA6C006EE", callback: "(null)", format: "(null)"
[14:58:59] [DEBUG] CMySQLQuery::Execute[] - starting query execution
[14:58:59] [ERROR] CMySQLQuery::Execute[] - (error #1054) Unknown column '1' in 'where clause'
[14:58:59] [DEBUG] CMySQLQuery::Execute[] - error will be triggered in OnQueryError
pawn Код:
new MyHash[64 + 1];
SHA256_PassHash(params[0], "*********", MyHash, sizeof MyHash);
mysql_format(mysql, query, sizeof(query), "UPDATE `accounts` SET `Password` = `%e` WHERE `ID` = `%d`", MyHash, Player[playerid][ID]);
mysql_tquery(mysql, query, "", "");