Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. ["Money", "Edit Cash",
  2. {
  3. _dialog_result = ["Money Menu",
  4. [
  5. ["Combo Box Control", ["0","1","2"], 0],
  6. ["Text Control", "", "0"]
  7. ]] call Ares_fnc_showChooseDialog;
  8. if (count _dialog_result == 0) exitWith {};
  9. null = [(_dialog_result select 0),(_dialog_result select 1)] spawn {
  10. _Cash = _this select 1;
  11. switch (_this select 0) do {
  12. case "0": { MoneyAsset = (MoneyAsset + _Cash); systemChat format["%1",MoneyAsset];};
  13. case "1": { MoneyAsset = (MoneyAsset - _Cash); systemChat format["%1",MoneyAsset];};
  14. case "2": { systemChat format["%1",MoneyAsset];};
  15. };
  16. };
  17. }] call Ares_fnc_RegisterCustomModule;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement