[HELP] Dialog registration system
#3

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. :/
Reply


Messages In This Thread
[HELP] Dialog registration system - by Fredden1993 - 08.04.2012, 20:52
Re: [HELP] Dialog registration system - by ReneG - 08.04.2012, 21:00
Re: [HELP] Dialog registration system - by Fredden1993 - 08.04.2012, 22:48
Re: [HELP] Dialog registration system - by Fredden1993 - 09.04.2012, 11:47
Re: [HELP] Dialog registration system - by Reklez - 09.04.2012, 11:50
Re: [HELP] Dialog registration system - by Bokyyy - 09.04.2012, 12:08
Re: [HELP] Dialog registration system - by Fredden1993 - 09.04.2012, 13:41

Forum Jump:


Users browsing this thread: 1 Guest(s)