Guest User

Untitled

a guest
Oct 23rd, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.49 KB | None | 0 0
  1. /*
  2.  
  3. 1. Na gorze kodu
  4.  
  5. */
  6.  
  7. #define ShowPlayerDialog ShowSafeDialog
  8.  
  9. /*
  10.  
  11. 2. Gdzies na dole kodu
  12.  
  13. */
  14.  
  15. stock ShowSafeDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]) {
  16.     SetPVarInt(playerid, "DialogID", dialogid);
  17.     ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
  18. }
  19.  
  20. /*
  21.  
  22. 3. Na gorze Callbacku (Funkcji) OnDialogResponse
  23.  
  24. */
  25.  
  26. if(GetPVarInt(playerid, "DialogID") != dialogid) {
  27.     dialogid = GetPVarInt(playerid, "DialogID");
  28. }
Add Comment
Please, Sign In to add comment