[Help]Public OnDialogResponse errors
#2

You have a case out of the random. This needs to be inside a switch statement instead, and yes, nested switch statements are perfectly fine.
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case 0:
        {
            if(response)
            {
                switch(listitem)
                {
                }
            }
        }
        case 1:
        {
            // ...
        }
    }
}
Reply


Messages In This Thread
[Help]Public OnDialogResponse errors - by Deaglez - 02.08.2012, 11:08
Re: [Help]Public OnDialogResponse errors - by AndreT - 02.08.2012, 11:11

Forum Jump:


Users browsing this thread: 1 Guest(s)