Dialog help
#3

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch (dialogid)
    {
        case DIALOG_HELP:
        {
            if (response)
            {
                switch (listitem)
                {
                    case 0:
                    {
                        // code for: /job
                    }
                    case 1:
                    {
                        // code for: /cmd
                    }
                }
            }
            return 1;
        }
    }
    return 0;
}
EDIT: McBan, you had posted an awful code that was not even possible to compile and then edited your post after I posted and you copied-pasted my post, removed the 2 comments..
Reply


Messages In This Thread
Dialog help - by KyLeBlaK - 28.01.2014, 16:38
Re: Dialog help - by McBan - 28.01.2014, 16:43
Re: Dialog help - by Konstantinos - 28.01.2014, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)