My server does not recognize passwords.
#3

OnPlayerConnect:
pawn Код:
if(fexist(UserPath(playerid)))
        {
            INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
            format(dstring, sizeof(dstring), "{FFFFFF}Welcome back to {00FF26}SERVER!{FFFFFF}\n\nThat name is registered. Please enter your password below.");
            ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", dstring, "Login", "Quit");
        }
        else
        {
            format(dstring, sizeof(dstring),  "{FFFFFF}Welcome %s {FFFFFF}to {00FF00}SERVER!\n\n{FFFFFF}It seems to be your first time on the server?\nThe registration progress will be as the following:\n\n1. Rules Agreement\n2. An RP quiz that consists out of 5 questions\n3. Password Selection\n4. Age Selection\n5. Skin Selection", GetName(playerid));
            ShowPlayerDialog(playerid, DIALOG_START, DIALOG_STYLE_MSGBOX, "West Coast Life Roleplay",dstring, "Continue", "Quit");
        }
Enum pInfo
pawn Код:
enum pInfo
{
    pCash,
    pPass,
    pAdmin,
    pLevel,
    pAge,
    pKills,
    pDeaths,
    pSkin,
    pInt,
    pVW,
    Float:pFacingAngle,
    Float:pHealth,
    Float:pArmour,
    Float:pLastX,
    Float:pLastY,
    Float:pLastZ,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply


Messages In This Thread
My server does not recognize passwords. - by AndySedeyn - 01.05.2014, 07:18
Re: My server does not recognize passwords. - by Eth - 01.05.2014, 07:20
Re: My server does not recognize passwords. - by AndySedeyn - 01.05.2014, 07:34
Re: My server does not recognize passwords. - by Eth - 01.05.2014, 07:50
Re: My server does not recognize passwords. - by AndySedeyn - 01.05.2014, 07:52

Forum Jump:


Users browsing this thread: 1 Guest(s)