Dialogbox[BUTTONS] REP ++
#5

Oh..you mean the listitem?
If the dialog is a list type, the value of 'listitem' in OnDialogResponse is the item's position in dialog - 1 .
The items in the list starts from 0.

Example:
PHP код:
CMD:cmds(playeridparams[]) return ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"Commands""General Commands\nPlayer Commands""Select""Close");
public 
OnDialogReponse(playeriddialogidresponselistitem)
{
    if(
listitem==0//show the dialog of general commands
    
{
         
ShowPlayerDialog(playerid2DIALOG_STYLE_MSGBOX"General commands""These are the general commands""Back""Close");
    }
    if(
listitem==1// show the dialog of player commands
    
{
         
ShowPlayerDialog(playerid3DIALOG_STYLE_MSGBOX"Player commands""These are the player commands""Back""Close");
    }
    return 
1;

The value of 'listitem' is determined by the item which the player has selected.
Reply


Messages In This Thread
Dialogbox[BUTTONS] REP ++ - by NviDa - 16.04.2015, 13:59
Re: Dialogbox[BUTTONS] REP ++ - by RoboN1X - 16.04.2015, 14:09
Re: Dialogbox[BUTTONS] REP ++ - by ATGOggy - 16.04.2015, 14:12
Re: Dialogbox[BUTTONS] REP ++ - by NviDa - 16.04.2015, 14:20
Re: Dialogbox[BUTTONS] REP ++ - by ATGOggy - 16.04.2015, 14:31
Re: Dialogbox[BUTTONS] REP ++ - by NviDa - 16.04.2015, 14:37
Re: Dialogbox[BUTTONS] REP ++ - by SickAttack - 16.04.2015, 14:54
Re: Dialogbox[BUTTONS] REP ++ - by NoDi522 - 16.04.2015, 14:55
Re: Dialogbox[BUTTONS] REP ++ - by NviDa - 16.04.2015, 15:05
Re: Dialogbox[BUTTONS] REP ++ - by ATGOggy - 16.04.2015, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)