Dialog not continueing
#2

Try this
pawn Код:
if(dialogid == 689) // Vehicle2
{
    if(response)
    {
        if(strlen(inputtext) > 0)
        {
            new model = strval(inputtext);
            if(400 <= model <= 611)
            {
                ShowPlayerDialog(playerid, 689, DIALOG_STYLE_INPUT, "Vehicle", "Please enter a vehicle ID from 400 to 611.", "Create", "Cancel"); return 1;
            }
            switch(model)
            {
                case 425,432,476,447,537,538,569,570,584,590,591,606,607,608,610,611,441,464,465,501,564,594,435,449,450:
                {
                    SendClientMessage(playerid, 0xE21F1FFF, "Those vehicles are restricted!");
                    ShowPlayerDialog(playerid, 689, DIALOG_STYLE_INPUT, "Vehicle", "Please enter a vehicle ID from 400 to 611.", "Create", "Cancel");
                    return 1;
                }
            }
            SetupHouseInfo[playerid][SetupCarModel2] = model;
            IsSettingUpVehicle2[playerid] = true;
            ShowPlayerDialog(playerid, 255, DIALOG_STYLE_MSGBOX, "Vehicle Setup", "Go to the position you want your vehicle to spawn, then type /confirm.", "Select", "Cancel");
            return 1;
        }
    }
    else
    {
        ShowPlayerDialog(playerid, 668, DIALOG_STYLE_LIST, "House Setup", "Entrance\nName\nDescription\nInterior\nVehicle\nVehicle2\nRent\nPurchase", "Select", "Cancel"); return 1;
    }
}
Also dont use numbers in dialogs, at top of the script at #defines add #define Vehicle2 689
Reply


Messages In This Thread
Dialog not continueing - by DaRoderick - 01.12.2012, 20:04
Re: Dialog not continueing - by ikey07 - 02.12.2012, 09:50
Re: Dialog not continueing - by dr.lozer - 02.12.2012, 09:51
Re: Dialog not continueing - by DaRoderick - 02.12.2012, 11:22
Re: Dialog not continueing - by ikey07 - 03.12.2012, 22:51
Re: Dialog not continueing - by DaRoderick - 04.12.2012, 17:31
Re: Dialog not continueing - by [Ro]DuReX - 04.12.2012, 18:19
Re: Dialog not continueing - by DaRoderick - 05.12.2012, 12:28
Re: Dialog not continueing - by [Ro]DuReX - 05.12.2012, 14:27

Forum Jump:


Users browsing this thread: 3 Guest(s)