SA-MP Forums Archive
Next dialog box when i click OK - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Next dialog box when i click OK (/showthread.php?tid=368443)



Next dialog box when i click OK - P<3TS - 13.08.2012

Hello,
i want to make some thing like if a player type /commands then the first dialog box will come

pawn Код:
new string[1900];
    strcat(string, "Message", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    ShowPlayerDialog(playerid,1, DIALOG_STYLE_MSGBOX, "Messages", string, "NEXT","Cancel");
And then if i press 'NEXT' then the next dialog box should come (cancel = close the dialog)

pawn Код:
new string[1900];
    strcat(string, "Message", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    strcat(string, "\nMessage", 1900 );
    ShowPlayerDialog(playerid,1, DIALOG_STYLE_MSGBOX, "Messages", string, "OK","Cancel");
How to make ?


Re: Next dialog box when i click OK - Jstylezzz - 13.08.2012

OnDialogResponse..
https://sampforum.blast.hk/showthread.php?tid=109610
here is a tutorial that will explain how to use OnDIalogResponse


Re: Next dialog box when i click OK - P<3TS - 13.08.2012

i didnt understand that, can you show me a simple example?


Re: Next dialog box when i click OK - P<3TS - 13.08.2012

anyone please help...


Re: Next dialog box when i click OK - kickerbat - 13.08.2012

The dialog tutorial explains it all , what don't you understand?


Re: Next dialog box when i click OK - P<3TS - 13.08.2012

i didnt understand, just an example please


Re: Next dialog box when i click OK - CROSS_Hunter - 13.08.2012

use used similar dialog ids just check the showplayerdialog(playerid, *id of the dialog* and see if its similar to another one


Re: Next dialog box when i click OK - zT KiNgKoNg - 13.08.2012

you can request a code/script to be made on a section on the forums


Re: Next dialog box when i click OK - P<3TS - 15.08.2012

By telling this can you please show me a code?


Re: Next dialog box when i click OK - [MM]RoXoR[FS] - 15.08.2012

pawn Код:
new ondialog[MAX_PLAYERS];
//When they type /cmds
ondialog[playerid] = 0;
//under public OnDialogRespone
if(dialogid == 1)
{
    if(response)//They pressed next
    {
        switch(ondialog[playerid])
        {
            case 0:
            {
                ondialog[playerid]++;
                ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"COmmands",/*Message*/,"NEXT","EXIT");
            }
//and all other case
//for last dialog remove next button
        }
    }
}