Responsive Dialog
#4

Quote:
Originally Posted by RxErT
Посмотреть сообщение
Try this now:

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == DIALOG_SUPPRESSION)
    {
        if(
response)
        {
            
ShowPlayerDialog(playeridDIALOG_SUPPRESSIONDIALOG_STYLE_LIST"Commands""Attach\nDeattach""Continue""Cancel");
        }
    }
    if(
dialogid == DIALOG_SUPPRESSION)
    {
        if(
response)
        {
            if(
listitem == 0)
            {
            
                    
SendClientMessage(playeridCOLOR_AQUA"TEST");
             }
            if(
listitem == 1)
            {
                    
SendClientMessage(playeridCOLOR_AQUA"TEEEEST");
            }
        }
    }
    return 
1;

You probably forgot to return a value for OnDialogResponse return 1; and missed a bracket.
thank u my dude

but when i do /help > suppression system the message from listitem 0 pops up
Reply


Messages In This Thread
Responsive Dialog - by Mo123 - 29.05.2018, 18:25
Re: Responsive Dialog - by Exhibit - 29.05.2018, 18:29
Re: Responsive Dialog - by RxErT - 29.05.2018, 19:08
Re: Responsive Dialog - by Mo123 - 29.05.2018, 20:49
Re: Responsive Dialog - by iSpark - 29.05.2018, 22:03

Forum Jump:


Users browsing this thread: 1 Guest(s)