So basiclly after registration show tutorial dialog.
#2

1.
pawn Код:
ShowMainMenuDialog(playerid, frame)
{
    new titlestring[64];
    new string[256];

    switch(frame)
    {
        case 1, 3:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "Login - %s", GetPlayerNameEx(playerid));
            if(3 == frame) strcat((string[0] = EOS, string), "Invalid Password!\n\n");
            strcat(string, "Welcome to Natural Los Santos Roleplay, %s.\n\nThis Account Is Registred Please Fill In Your Password To Login In");
            format(string, sizeof(string), string, GetPlayerNameEx(playerid),  ip);
            ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_INPUT,titlestring,string,"Login","Exit");
        }
        case 2:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "Register - %s", GetPlayerNameEx(playerid));
            format(string, sizeof(string), "Welcome to Natural Los Santos Roleplay, %s.\n\nYou Have Not Yet Registerd Please Do And Fill Out The Password.", GetPlayerNameEx(playerid),  ip);
            ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_INPUT,titlestring,string,"Register","Exit");
        }
    }
}
2. OnDialogResponse for dialog id equal MAINMENU2
Reply


Messages In This Thread
So basiclly after registration show tutorial dialog. - by Scrillex - 18.03.2013, 10:48
Re: So basiccly after registration show tutorial dialog. - by Misiur - 18.03.2013, 10:55
Re: So basiccly after registration show tutorial dialog. - by Scrillex - 18.03.2013, 11:03
Re: So basiclly after registration show tutorial dialog. - by Misiur - 18.03.2013, 11:05
Re: So basiclly after registration show tutorial dialog. - by Scrillex - 18.03.2013, 11:27

Forum Jump:


Users browsing this thread: 1 Guest(s)