10.02.2016, 01:15
Код:
strtok... ?!! strmid(PlayerInfo[playerid][pKey], tmp, 0, strlen(cmdtext), 255); new MyHash[256]; SHA256_PassHash(tmp, "78sdjs86d2h", MyHash, sizeof(MyHash)); format(PlayerInfo[playerid][pKey], 256, MyHash); format(MyHash, 256, PlayerInfo[playerid][pKey]);
That /changepass cmd is just some convoluted... I don't know what that is.
What I would do is at least escape the name under the dialog, since you don't escape anything.
Use the "%e" specifier with "mysql_format". Oh and thanks for sharing with us your "salt".
Other than that I don't know what the problem is, or where it is. One thing that strikes me though
is in your dialog: "if (strlen(inputtext)". No, please just no. Use "isnull".
I expect better coding from you in the future mister.
Edit: oh yeah, also:
Код:
new stringx[256]; format(stringx, 456, ...