Dialog responce help
#7

Firstly you should definitely indent your code properly, and also what ID have you defined DIALOG_JOB as?

pawn Код:
ShowPlayerDialog(playerid, DIALOG_JOB, DIALOG_STYLE_MSGBOX, "Job", "Do you want to join this job?", "Yes", "No");
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_JOB)
    {
        if(response)
        {
            SendClientMessage(playerid, COLOR_GREEN, "You accepted the job!");
        }
        else
        {
            KickWithMessage(playerid, COLOR_RED, "You declined the job.");
        }
        return 1;
    }
 
    return 0;
}
Reply


Messages In This Thread
Dialog responce help - by Xenforox - 12.06.2014, 10:59
Re: Dialog responce help - by Rufio - 12.06.2014, 11:01
Re: Dialog responce help - by Rittik - 12.06.2014, 11:02
Re : Dialog responce help - by Xenforox - 12.06.2014, 11:26
Re: Dialog responce help - by Laure - 12.06.2014, 11:29
Re : Dialog responce help - by Xenforox - 12.06.2014, 11:34
Re: Dialog responce help - by NewerthRoleplay - 12.06.2014, 11:40
Re: Dialog responce help - by Laure - 12.06.2014, 11:44

Forum Jump:


Users browsing this thread: 1 Guest(s)