SA-MP Forums Archive
Help me - 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: Help me (/showthread.php?tid=628211)



Help me - Deny1 - 07.02.2017

Hello all, I have problem with dialog..i try to make to show dialog after dialog but DIALOG_THREE don't show when I test command..
PHP код:
CMD:dialog(playeridparams[]) {
    
ShowPlayerDialog(playeridDIALOG_ONEDIALOG_STYLE_MSGBOX"HEY""HEY""Open""Close");
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[]) {
    switch(
dialogid) {
        case 
DIALOG_ONE: {
            if(
response)
                
ShowPlayerDialog(playeridDIALOG_TWODIALOG_STYLE_MSGBOX"HEY""HEY""Open""Close");
        }
        case 
DIALOG_TWO: {
            if(
response)
                
ShowPlayerDialog(playeridDIALOG_THREEDIALOG_STYLE_MSGBOX"HEY""HEY""Open""Close");
        }
    }
    return 
0;




Re: Help me - AndreiWow - 07.02.2017

Use return 1; at the end of dialog response


Re: Help me - JesterlJoker - 07.02.2017

How would it show? You haven't added DIALOG THREE only ONE AND TWO.

Add dialog three to make sure it works


Re: Help me - Deny1 - 07.02.2017

PHP код:
case DIALOG_TWO: { 
            if(
response
                
ShowPlayerDialog(playeridDIALOG_THREEDIALOG_STYLE_MSGBOX"HEY""HEY""Open""Close"); 



Re: Help me - Deny1 - 07.02.2017

But command now don't even work LOL i both cases