Showing a certain dialog after responding to a dialog
#3

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
No its not
its like this -
pawn Код:
if(dialogid == SOME_DIALOG)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0://Note the change in this line || listitem starts from 0 || that is if they clicked 1st item of list
                {
                    ShowPlayerDialog( etc. etc....);
                }
                case 1://Note the change in this line
                {
                    ShowPlayerDialog( etc. etc....);
                }
            }
        }
        return 1;
    }
You can read about switch-case on ******
I think I wrongly forget to write the switch cases, I want it to be like
pawn Код:
case 0:
{
    if(rank 1)
    {
        ShowPlayerDialog(etc....)
    }
    else if(rank 2)
    {
        ShowPlayerDialog(etc....)
    }
That's what I meant, I just forget to put the the switch cases.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)