Help me
#1

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;

Reply
#2

Use return 1; at the end of dialog response
Reply
#3

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

Add dialog three to make sure it works
Reply
#4

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)