Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.78 KB | None | 0 0
  1. Dialog:d_local(playerid, response, listitem, inputtext[])
  2. {
  3.     if(response)
  4.     {
  5.         static storylife_str[59+1] = !"Вы действительно хотите выбрать '";
  6.         strcat(storylife_str, StoryLife_Head[listitem]);
  7.         strcat(storylife_str, "'?");
  8.  
  9.         Player::[pChoice_History] = 1;
  10.         Player::[pHistory_Status] = listitem+1;
  11.         printf("%d", Player::[pHistory_Status]);
  12.         Dialog_Show(playerid, d_confirm_local, DIALOG_STYLE_MSGBOX, !"Выбор истории | Местный", storylife_str, "Далее", "Назад");
  13.     }
  14.     else
  15.     {
  16.         Dialog_Show(playerid, d_choice_history, DIALOG_STYLE_LIST, "Выбор истории", "Местный\nПриезжий", "Далее", "Назад");
  17.         Player::[pChoice_History] = 0;
  18.         Player::[pHistory_Status] = 0;
  19.     }
  20.     return true;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement