How create Dialog In Dialog ?
#1

How can I create dialog inside dialog , Like : CMd:CreateVehicle

[SportVehicles] >>> Than enter to another dialog new one >>> Infernus , Turismo ETC , How to do that ?
Reply
#2

Quote:
Originally Posted by yaron0600
Посмотреть сообщение
How can I create dialog inside dialog , Like : CMd:CreateVehicle

[SportVehicles] >>> Than enter to another dialog new one >>> Infernus , Turismo ETC , How to do that ?
OnPlayerSelectedMenuRow, then ShowPlayerMenu... DIALOG_STYLE_LIST and add another items on it.
Reply
#3

You basically, assign the case in your OnDialogResponse for the first dialog, and put another dialog inside that.
Код:
case 0:
	    {		    				      
             ShowPlayerDialog(playerid,NEW_DIALOG_ID,DIALOG_STYLE_LIST,"blah","blah","Herp","Derp");
	     }
Reply
#4

pawn Код:
if(response)
  {
      if(listitem == 0) //cars
        {
            dialog cars ...
        }
       if(listitem == 1) // bikes
         {
             dialog bikes ..
         }
CrossUSAAF he is talking about dialogs not menus
Reply
#5

y_inline / y_dialogs allows you to do just this by nesting dialogs within dialogs and again I'll stand by this system as the best when it comes to dialogs.

https://sampforum.blast.hk/showthread.php?tid=295049
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)