Advertisement
FKu

Untitled

FKu
Oct 18th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3.  
  4. if(dialogid == 1)// first dialog ,you can change the number to a name
  5. {
  6. if(response)
  7. {
  8. if(listitem == 0)
  9. {
  10. [Do blah blah blah]
  11. }
  12.  
  13. if(listitem == 1)
  14. {
  15. ShowPlayerDialog(playerid,2,DIALOG_STYLE_LIST,"Items","1 \n 2","Select","Close");
  16. // this showplayerdialog goes to the second dialog
  17. }
  18. }
  19. }
  20.  
  21.  
  22. if(dialogid == 2) // second dialog, you can change the number to a name
  23. {
  24. if(response)
  25. {
  26. if(listitem == 0)
  27. {
  28. [Do blah blah blah]
  29. }
  30.  
  31. if(listitem == 1)
  32. {
  33. [Do blah blah blah]
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement