11.08.2017, 08:29
Hey gang,
I started using easy-mysql include recently and I removed SHA256 hashing which resulted empty password. I can make an account but I can't login and my password row is empty.
https://sampforum.blast.hk/showthread.php?tid=590310
(I'm using Login-Register exampl)
I tried to switch operators but it will always result blank.
I started using easy-mysql include recently and I removed SHA256 hashing which resulted empty password. I can make an account but I can't login and my password row is empty.
https://sampforum.blast.hk/showthread.php?tid=590310
(I'm using Login-Register exampl)
Код HTML:
case DIALOG_LOGIN: { if(!response) Kick(playerid); if(UserInfo[playerid][p_password]) { new handle = SQL::Open(SQL::READ, "players", "p_id", UserInfo[playerid][p_id]); SQL::ReadInt(handle, "p_score", UserInfo[playerid][p_score]); SQL::ReadFloat(handle, "p_posx", UserInfo[playerid][p_posx]); SQL::ReadFloat(handle, "p_posy", UserInfo[playerid][p_posy]); SQL::ReadFloat(handle, "p_posz", UserInfo[playerid][p_posz]); SQL::Close(handle); SetPlayerScore(playerid, UserInfo[playerid][p_score]); UserInfo[playerid][p_loggedin] = 1; SendClientMessage(playerid, -1, "Successfully logged in!"); } else { ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{0080FF}Login", "Please input your password below to log in.", "Login", "Exit"); } }