Dialog Problem and loading last pos!
#9

Sorry can I sort this out aswell?
if pRegged is set to 1 then it doesn't show the dialog for the player when they connect again! here is my OnPlayerConnect!
Код:
public OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
        ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","Type your password below to login.","Login","Quit");
    }
    else
    {
        ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Register","Type your password below to register a new account.","Register","Quit");
        SpawnPlayer(playerid);
    }
    SetPlayerColor(playerid, COLOR_WHITE);
    return 1;
}
Reply


Messages In This Thread
Dialog Problem and loading last pos! - by HazardGaming - 21.04.2012, 11:29
Re: Dialog Problem and loading last pos! - by Richie© - 21.04.2012, 11:31
Re: Dialog Problem and loading last pos! - by HazardGaming - 21.04.2012, 11:31
Re: Dialog Problem and loading last pos! - by Richie© - 21.04.2012, 11:37
Re: Dialog Problem and loading last pos! - by HazardGaming - 21.04.2012, 11:38
Re: Dialog Problem and loading last pos! - by Richie© - 21.04.2012, 11:40
Re: Dialog Problem and loading last pos! - by HazardGaming - 21.04.2012, 11:50
Re: Dialog Problem and loading last pos! - by Richie© - 21.04.2012, 11:54
Re: Dialog Problem and loading last pos! - by HazardGaming - 21.04.2012, 11:58
Re: Dialog Problem and loading last pos! - by HazardGaming - 21.04.2012, 12:27

Forum Jump:


Users browsing this thread: 3 Guest(s)