Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. /*
  2. BLAH BLAH
  3. I LOVE NOTEPAD++ GET OVER IT
  4. BLAH!
  5. */
  6. private["_house","_houseID","_containers","_query","_unit"];
  7. _house = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
  8. _unit = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param;
  9. if(isNull _house) exitWith {systemChat "House null";};
  10. _houseID = _house getVariable["house_id",-1];
  11. if(_houseID == -1) exitWith {systemChat "HouseID invalid";};
  12.  
  13. _containers = _house getVariable ["containers",[]];
  14.  
  15. //systemChat format["Number of containers found: %1",count _containers];
  16. _arr = [];
  17. {
  18. _className = typeOf _x;
  19. _weapons = getWeaponCargo _x;
  20. _magazines = getMagazineCargo _x;
  21. _items = getItemCargo _x;
  22. _backpacks = getBackpackCargo _x;
  23.  
  24. _arr pushBack [_className,[_weapons,_magazines,_items,_backpacks]];
  25. } foreach _containers;
  26.  
  27. _query = format["houseUpdateContainer:%1:%2",_arr,_houseID];
  28. //waitUntil{!DB_Async_Active};
  29. [_query,1] call DB_fnc_asyncCall;
  30. //systemChat "Query ran?";
  31.  
  32. [1,"Sauvegarde de votre coffre effectuée"] remoteExecCall ["life_fnc_broadcast",_unit];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement