Multiple Dialog
#9

Quote:
Originally Posted by Twistedz
Посмотреть сообщение
This format then. Sorry not on my PC to test.

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch (dialogid)
    {
        if(dialogid == 24)
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0: 
                    {
                    new jm[170];
                    format(jm, sizeof jm, "Type your Message Here:");
                    ShowPlayerDialog(playerid, 97, DIALOG_STYLE_INPUT, "Change Message", jm, "Save", "Cancel");
                    }
                    case 1:
                    {
                    SendClientMessage(playerid, -1, "Test 2nd dialog");
                    }
                }
            }
            else
            {
                   SendClientMessage(playerid, -1, "You have closed this dialog.");
            }
         }    
     }
    return 1;
}
Код:
(1002) : error 002: only a single statement (or expression) can follow each "case"
(1002 -- 1003) : error 029: invalid expression, assumed zero
(1025) : warning 209: function "OnDialogResponse" should return a value
(1026) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply


Messages In This Thread
Multiple Dialog - by DerickClark - 07.02.2017, 03:43
Re: Multiple Dialog - by Wolfe - 07.02.2017, 03:56
Re: Multiple Dialog - by DerickClark - 07.02.2017, 04:01
Re: Multiple Dialog - by Twistedz - 07.02.2017, 04:02
Re: Multiple Dialog - by DerickClark - 07.02.2017, 04:03
Re: Multiple Dialog - by Wolfe - 07.02.2017, 04:05
Re: Multiple Dialog - by DerickClark - 07.02.2017, 04:07
Re: Multiple Dialog - by Twistedz - 07.02.2017, 04:09
Re: Multiple Dialog - by DerickClark - 07.02.2017, 04:11
Re: Multiple Dialog - by Wolfe - 07.02.2017, 04:11

Forum Jump:


Users browsing this thread: 1 Guest(s)