Won't recognise the account
#4

Change OnPlayerConnect Callback to
pawn Код:
public OnPlayerConnect(playerid)
{
    //////////////////////////////////////////////
    new Name[MAX_PLAYER_NAME], File[256];
    GetPlayerName(playerid, Name, sizeof(Name));
    format(File, sizeof(File), UserFile, Name);
    //////////////////////////////////////////////
    if(DOF2_FileExists(File))
    {
        //////////////////////////////////////////////
        ShowPlayerDialog(playerid, LoginDialog, DIALOG_STYLE_PASSWORD, "Login", "Enter your password below:", "Login", "Cancel");
        //////////////////////////////////////////////
    }
    else if(!DOF2_FileExists(File))
    {
        //////////////////////////////////////////////
        ShowPlayerDialog(playerid, RegisterDialog, DIALOG_STYLE_PASSWORD, "Register", "Enter a password below to register:", "Register", "Cancel");
        //////////////////////////////////////////////
    }
    //////////////////////////////////////////////
    return 1;
}
Reply


Messages In This Thread
Won't recognise the account - by Burthop - 02.01.2012, 16:15
Re: Won't recognise the account - by Littlehelper - 02.01.2012, 16:21
Re: Won't recognise the account - by Burthop - 02.01.2012, 16:29
Re: Won't recognise the account - by Konstantinos - 02.01.2012, 16:32
Re: Won't recognise the account - by Burthop - 02.01.2012, 16:47
Re: Won't recognise the account - by Konstantinos - 02.01.2012, 16:55
Re: Won't recognise the account - by mSp - 02.01.2012, 17:00
Re: Won't recognise the account - by Burthop - 02.01.2012, 17:13

Forum Jump:


Users browsing this thread: 2 Guest(s)