Quote:
Originally Posted by justjamie
PHP код:
WP_Hash(Player[playerid][Password], 129, inputtext);
mysql_format(koneksi, query, sizeof(query), "UPDATE `users` SET `Password` = '%s' WHERE `Name` = '%e'",inputtext, PlayerName(playerid));
mysql_query(koneksi, query);
|
Why are you replacing %e with %s? %e is needed to escape the string. Also, the hashed password is stored in the
Player[playerid][Password], using inputtext isn't needed either.