[HELP] login then choose city then requestclass
#3

Idk if this will work but try
Код:
//login
    if(dialogid==3)
    {
        if(response==0)
        {
            SendClientMessage(playerid,BLAU,"Bye Bye!");
            Kick(playerid);
            return 1;
        }
        if(response==1)
        {
            if(!strlen(inputtext))
            {
                SendClientMessage(playerid,BLAU,"Uw wactwoord is niet lang genoeg.");
                ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"LOGIN","Uw wachtwoord:","Login","Cancel");
                return 1;
            }
            else
            {
                Login(playerid,inputtext);
                //kies land
                if( (GetPVarInt(playerid,"PaspoortSF") == 0) && (GetPVarInt(playerid,"PaspoortLS") == 0) && (GetPVarInt(playerid,"PaspoortLV") == 0) )
                {
                    ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Uw begin land?:","Los Santos\r\nSan Fierro \r\nLas Venturas","Select","Cancel");
                    ForceClassSelection(playerid)

                }
                return 0;
            }
        }
    }
Код:
//register
    if(dialogid==2)
    {
        if(response==0)
        {
            SendClientMessage(playerid,BLAU,"Bye Bye!");
            Kick(playerid);
            return 1;
        }
        if(response==1)
        {
            if(!strlen(inputtext))
            {
                SendClientMessage(playerid,BLAU,"Het wachtwoord is niet lang genoeg.");
                ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"REGISTER","Uw wachtwoord:","Register","Cancel");
                return 1;
            }
            else
            {
                Register(playerid,inputtext);
                ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Uw begin land?:","Los Santos\r\nSan Fierro \r\nLas Venturas","Select","Cancel");
                 ForceClassSelection(playerid)
                return 0;
            }
        }
Reply


Messages In This Thread
[HELP] login then choose city then requestclass - by matjer - 06.07.2011, 17:51
Re: [HELP] login then choose city then requestclass - by matjer - 07.07.2011, 06:07
Re: [HELP] login then choose city then requestclass - by HayZatic - 07.07.2011, 06:15
Re: [HELP] login then choose city then requestclass - by matjer - 07.07.2011, 07:50
Re: [HELP] login then choose city then requestclass - by HayZatic - 07.07.2011, 08:08
Re: [HELP] login then choose city then requestclass - by matjer - 11.07.2011, 07:13

Forum Jump:


Users browsing this thread: 1 Guest(s)