Guest User

Passer Code Version Menu Etape 3

a guest
Mar 11th, 2010
370
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // En haut de votre script !
  2. #define CODEMENU 10 // By DiXoN
  3. #define CODEMENU1 11 // By DiXoN
  4. #define CODEMENU2 12 // By DiXoN
  5. #define CODEMENU3 13 // By DiXoN
  6.  
  7. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  8. {
  9. if(dialogid == CODEMENU)
  10. {
  11. if(response)
  12. {
  13. new tmp[256];//variable pour notre format
  14. format(tmp, 256, "2", inputtext) || format(tmp, 256, "2", inputtext)
  15. return OnPlayerText(playerid, tmp);//
  16. }
  17. }
  18. if(dialogid == CODEMENU2)
  19. {
  20. if(response)
  21. {
  22. new tmp[256];//variable pour notre format
  23. format(tmp, 256, "3", inputtext)
  24. return OnPlayerText(playerid, tmp);//
  25. }
  26. }
  27. if(dialogid == CODEMENU1)
  28. {
  29. if(response)
  30. {
  31. new tmp[256];
  32. format(tmp, 256, "2/3", inputtext)
  33. return OnPlayerText(playerid, tmp);
  34. }
  35. }
  36. if(dialogid == CODEMENU3)
  37. {
  38. if(response)
  39. {
  40. new tmp[256];
  41. format(tmp, 256, "1/4", inputtext)
  42. return OnPlayerText(playerid, tmp);
  43. }
  44. }
  45.  
  46.  
  47. CODESYS(playerid)
  48. {
  49. new codemsg[256];
  50. format(codemsg,256,"Inscriver le numéro de votre choix :");
  51. ShowPlayerDialog(playerid,CODEMENU,DIALOG_STYLE_INPUT,"Menu du Passage du Code de la Route ",codemsg,"Valider","Quitter");
  52. return 1;
  53. }
  54.  
  55. CODESYS1(playerid)
  56. {
  57. new code1msg[256];
  58. format(code1msg,256,"Deux reponses possible pour cette question, exemple 1/1 :");
  59. ShowPlayerDialog(playerid,CODEMENU1,DIALOG_STYLE_INPUT,"Menu du Passage du Code de la Route ",code1msg,"Valider","Quitter");
  60. return 1;
  61. }
  62.  
  63. CODESYS2(playerid)
  64. {
  65. new code2msg[256];
  66. format(code2msg,256,"Deux reponses possible pour cette question, exemple 1/1 :");
  67. ShowPlayerDialog(playerid,CODEMENU3,DIALOG_STYLE_INPUT,"Menu du Passage du Code de la Route ",code2msg,"Valider","Quitter");
  68. return 1;
  69. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×