Convert in EasyDialog
#3

His example explains everything I believe.

This code
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == 1)
    {
        if (response)
        {
            SendClientMessageToAll(-1, inputtext);
        }
        else SendClientMessage(playerid, -1, "You've canceled the dialog.");
    }
    return 1;
}

ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Announce", "Enter your message below.", "Announce", "Cancel");
Becomes

pawn Код:
Dialog:Test(playerid, response, listitem, inputtext[])
{
    if (response)
    {
        SendClientMessageToAll(-1, inputtext);
    }
    else SendClientMessage(playerid, -1, "You've canceled the dialog.");
    return 1;
}

ShowDialog(playerid, Show:Test, DIALOG_STYLE_INPUT, "Announce", "Enter your message below.", "Announce", "Cancel");
Reply


Messages In This Thread
Convert in EasyDialog - by Yordan_Kronos - 07.07.2013, 21:40
Re: Convert in EasyDialog - by Yordan_Kronos - 08.07.2013, 06:27
Re: Convert in EasyDialog - by Konstantinos - 08.07.2013, 09:15
Re: Convert in EasyDialog - by Yordan_Kronos - 08.07.2013, 09:48
Re: Convert in EasyDialog - by Konstantinos - 08.07.2013, 09:56
Re: Convert in EasyDialog - by Yordan_Kronos - 08.07.2013, 10:02
Re: Convert in EasyDialog - by Konstantinos - 08.07.2013, 10:06
Re: Convert in EasyDialog - by Yordan_Kronos - 08.07.2013, 10:12

Forum Jump:


Users browsing this thread: 1 Guest(s)