OnDialogResponse
#4

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return 1;
}
u lost this code??
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == your dialog name the one u defined)
    {
        if(response)
        {
            if(listitem == 0) // if he clicked the 1st option
            {
                // what you want to show him
            }
            if(listitem == 1)
            {
            // what you want to show him
            }
            if(listitem == 2)
            {
             // what you want to show him // u can use case if u want
            }
        }
        return 1;
    }
    return 0; // return 0 as per samp wiki
}
Reply


Messages In This Thread
OnDialogResponse - by aDo7 - 20.11.2013, 11:03
Re: OnDialogResponse - by kbalor - 20.11.2013, 11:10
Re: OnDialogResponse - by aDo7 - 20.11.2013, 11:15
Re: OnDialogResponse - by newbie scripter - 20.11.2013, 11:21
Re: OnDialogResponse - by aDo7 - 20.11.2013, 11:26
Re: OnDialogResponse - by aDo7 - 20.11.2013, 11:39
Re: OnDialogResponse - by aDo7 - 20.11.2013, 11:48
Re: OnDialogResponse - by newbie scripter - 20.11.2013, 11:57
Re: OnDialogResponse - by aDo7 - 20.11.2013, 12:01
Re: OnDialogResponse - by newbie scripter - 20.11.2013, 12:25

Forum Jump:


Users browsing this thread: 2 Guest(s)