Why the code is not working ?
#2

Change:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == ID_FLIGHT1) {
                if(response) {
                        ShowPlayerDialog(playerid, ID_FLIGHT1, DIALOG_STYLE_INPUT, "Departing from", "Please fill in the field \n\nPlease input the airport you're departing from", "Continue", "Cancel");
            ShowPlayerDialog(playerid, ID_FLIGHT2, DIALOG_STYLE_INPUT, "Arriving at", "Please input the airport you're arriving at", "Done", "Cancel");
                        format(FlightDepart[playerid], sizeof(FlightDepart), "%s", inputtext);
                }
        }
       
        if(dialogid == ID_FLIGHT2) {
                if(response) {
                    new string[128];
                        ShowPlayerDialog(playerid, ID_FLIGHT2, DIALOG_STYLE_INPUT, "Arriving at", "~r~Please fill in the field ~w~\n\nPlease input the airport you're arriving at", "Done", "Cancel");
                        format(FlightArrive[playerid], sizeof(FlightArrive), "%s", inputtext);
                        format(string, sizeof string, "Flight by %s: Departing From: %s: Arriving At: %s:", PlayersName(playerid), FlightDepart[playerid], FlightArrive[playerid]);
                        SendClientMessageToAll(COLOR_WHITE, string);
                }
        }

}
To:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == ID_FLIGHT1) {
                if(response) {
                        ShowPlayerDialog(playerid, ID_FLIGHT1, DIALOG_STYLE_INPUT, "Departing from", "Please fill in the field \n\nPlease input the airport you're departing from", "Continue", "Cancel");
            ShowPlayerDialog(playerid, ID_FLIGHT2, DIALOG_STYLE_INPUT, "Arriving at", "Please input the airport you're arriving at", "Done", "Cancel");
                        format(FlightDepart[playerid], sizeof(FlightDepart), "%s", inputtext);
                }
        }
        return 1;
       
        if(dialogid == ID_FLIGHT2) {
                if(response) {
                    new string[128];
                        ShowPlayerDialog(playerid, ID_FLIGHT2, DIALOG_STYLE_INPUT, "Arriving at", "~r~Please fill in the field ~w~\n\nPlease input the airport you're arriving at", "Done", "Cancel");
                        format(FlightArrive[playerid], sizeof(FlightArrive), "%s", inputtext);
                        format(string, sizeof string, "Flight by %s: Departing From: %s: Arriving At: %s:", PlayersName(playerid), FlightDepart[playerid], FlightArrive[playerid]);
                        SendClientMessageToAll(COLOR_WHITE, string);
                }
        }
        return 1;

}
Reply


Messages In This Thread
Why the code is not working ? - by Rg-Gaming.Info - 10.06.2012, 01:32
Re: Why the code is not working ? - by Dubya - 10.06.2012, 01:35
Re: Why the code is not working ? - by Rg-Gaming.Info - 10.06.2012, 01:49
Re: Why the code is not working ? - by Crazymax - 10.06.2012, 02:39
Re: Why the code is not working ? - by Rg-Gaming.Info - 10.06.2012, 02:45
Re: Why the code is not working ? - by Dubya - 10.06.2012, 05:09

Forum Jump:


Users browsing this thread: 1 Guest(s)