Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- BLAH BLAH
- I LOVE NOTEPAD++ GET OVER IT
- BLAH!
- */
- private["_house","_houseID","_containers","_query","_unit"];
- _house = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
- _unit = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param;
- if(isNull _house) exitWith {systemChat "House null";};
- _houseID = _house getVariable["house_id",-1];
- if(_houseID == -1) exitWith {systemChat "HouseID invalid";};
- _containers = _house getVariable ["containers",[]];
- //systemChat format["Number of containers found: %1",count _containers];
- _arr = [];
- {
- _className = typeOf _x;
- _weapons = getWeaponCargo _x;
- _magazines = getMagazineCargo _x;
- _items = getItemCargo _x;
- _backpacks = getBackpackCargo _x;
- _arr pushBack [_className,[_weapons,_magazines,_items,_backpacks]];
- } foreach _containers;
- _query = format["houseUpdateContainer:%1:%2",_arr,_houseID];
- //waitUntil{!DB_Async_Active};
- [_query,1] call DB_fnc_asyncCall;
- //systemChat "Query ran?";
- [1,"Sauvegarde de votre coffre effectuée"] remoteExecCall ["life_fnc_broadcast",_unit];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement