Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)// first dialog ,you can change the number to a name
- {
- if(response)
- {
- if(listitem == 0)
- {
- [Do blah blah blah]
- }
- if(listitem == 1)
- {
- ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Items","1 \n 2","Select","Close");
- // this showplayerdialog goes to the second dialog
- }
- }
- }
- if(dialogid == 2) // second dialog, you can change the number to a name
- {
- if(response)
- {
- if(listitem == 0)
- {
- [Do blah blah blah]
- }
- if(listitem == 1)
- {
- [Do blah blah blah]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement