Dialog help
#2

pawn Код:
ShowPlayerDialog(playerid, 1, ...); // create the first dialog at your start minigame command


// OnDialogResponse:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        // what first dialog should do
        ShowPlayerDialog(playerid, 2, ...); // shows dialog 2
    }
    if(dialogid == 2)
    {
        // what second dialog should do
        ShowPlayerDialog(playerid, 3, ...); // show dialog 3
    }
    if(dialogid == 3)
    {
        // what dialog id 3 should do and so on
    }
    return 1;
}
This will help you: https://sampwiki.blast.hk/wiki/ShowPlayerDialog
And this also: https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply


Messages In This Thread
Dialog help - by spd_sahil - 09.09.2011, 16:54
Re: Dialog help - by Jafet_Macario - 09.09.2011, 17:07
Re: Dialog help - by spd_sahil - 09.09.2011, 17:09
Re: Dialog help - by Jafet_Macario - 09.09.2011, 18:07
Re: Dialog help - by spd_sahil - 09.09.2011, 19:01

Forum Jump:


Users browsing this thread: 2 Guest(s)