Invalid Password - y-ini
#6

Add a debug message to see if the password is being parsed correctly.
pawn Код:
public OnPlayerConnect(playerid)
{
    SetPlayerColor(playerid, COLOR_WHITE);
    Logged[playerid] = 0;
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"This account is currently registered\nPlease type in the account's password below.","Login","Quit");
        printf("Pass: %d", PlayerInfo[playerid][pPass]); // this
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Register",""COL_WHITE"This account is not registered\nPlease type in the wanted password below to reigster the account.","Register","Quit");
    }
    return 1;
}
Reply


Messages In This Thread
Invalid Password - y-ini - by Kindred - 03.05.2012, 23:09
Re: Invalid Password - y-ini - by Yuryfury - 03.05.2012, 23:51
Re: Invalid Password - y-ini - by Kindred - 04.05.2012, 00:03
Re: Invalid Password - y-ini - by JaKe Elite - 04.05.2012, 01:40
Re: Invalid Password - y-ini - by Kindred - 04.05.2012, 02:00
Re: Invalid Password - y-ini - by ReneG - 04.05.2012, 02:42
Re: Invalid Password - y-ini - by Yuryfury - 04.05.2012, 03:02
Re: Invalid Password - y-ini - by Kindred - 04.05.2012, 11:08
Re: Invalid Password - y-ini - by Everybody - 09.06.2012, 20:12
Re: Invalid Password - y-ini - by ReneG - 09.06.2012, 21:09

Forum Jump:


Users browsing this thread: 1 Guest(s)