Whirlpool Register And Login System Problem
#7

pawn Code:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, ""COL_WHITE"Login",""COL_LIGHTBLUE"Type your password below to login.","Login","Quit");
        Block[playerid] = 1;
    }
    else
    {
        new String[200];
        new pName[24];
        GetPlayerName(playerid, pName, 24);
        format(String, 200, ""COL_LIGHTBLUE"Welcome to %s, %s!, Type your password below to register a new account.", GetServerName(), pName);
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Registering", String, "Register", "");
        Block[playerid] = 1;
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)