Quote:
Originally Posted by VincentDunn
On the OnPlayerDisconnect section.
pawn Код:
public OnPlayerDisconnect(playerid, reason) { new file[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(file, sizeof(file), "users/%s.ini", name); if(dini_Exists(file)) { // Remove this line!!! dini_IntSet(file, "Password", PlayerInfo[playerid][pPassword]); dini_IntSet(file, "Cash", PlayerInfo[playerid][pCash]); } return 1; }
What is happening is that d_ini is writing it as 0 when they disconnect. So your password is 0 when you log back in, and lord knows what 0 is in hashed form. Remove the line
pawn Код:
dini_IntSet(file, "Password", PlayerInfo[playerid][pPassword]);
from your OnPlayerDisconnect part and let me know if it works.
|
Well now it's as you said, it saves the password but I'm still getting the wrong password thing. :/