Weird problem
#3

pawn Код:
OnPlayerConnect(playerid)
{
    if(fexist(UserPath(playerid)))
    {
        LoginIntro(playerid);
        IntroTimer = SetTimer("IntroLog",3000,1);
        gPlayerLogged[playerid] = 0;
    }
    return 1;
}
It starts a timer for the dialog to show, here is the timer callback:
pawn Код:
public IntroLog(playerid)
{
    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"{F81414}Login","{FFFFFF}Modern  {FFFFFF}RolePlay\n\n{F81414}Type in your password to play","Login","Exit");
    KillTimer(IntroTimer);
    return 1;
}
Reply


Messages In This Thread
Weird problem - by Muhamed.pwn - 16.09.2012, 19:47
Re: Weird problem - by Roko_foko - 16.09.2012, 19:52
Re: Weird problem - by Muhamed.pwn - 16.09.2012, 19:56
Re: Weird problem - by Roko_foko - 16.09.2012, 20:02
Re: Weird problem - by Muhamed.pwn - 16.09.2012, 20:13

Forum Jump:


Users browsing this thread: 1 Guest(s)