OfficialBW8 Posted March 8, 2015 Report Share Posted March 8, 2015 I installed the gold coins script today and everything in the safes got wiped. I understood that. But now every single time the server restarts, gear in vehicles, safes, sheds, and other forms of storages gets wiped. Anyone know what this could be caused by? Link to comment Share on other sites More sharing options...
illclint Posted March 8, 2015 Report Share Posted March 8, 2015 Check your RPT log for errors. I had similar issues and this was caused by errors in my server_updateObject file. Link to comment Share on other sites More sharing options...
OfficialBW8 Posted March 14, 2015 Author Report Share Posted March 14, 2015 thats what I have errors in. Ill post them. Link to comment Share on other sites More sharing options...
OfficialBW8 Posted March 14, 2015 Author Report Share Posted March 14, 2015 I checked and my RPT logs are fully clean this is my server_updateObject.sqf that I have edited in the tutorial. _object_inventory = { private["_inventory","_previous","_key"]; _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; _previous = str(_object getVariable["lastInventory",[]]); if (str(_inventory) != _previous) then { _object setVariable["lastInventory",_inventory]; if (_objectID == "0") then { _key = format["CHILD:309:%1:%2:",_uid,_inventory]; } else { _key = format["CHILD:303:%1:%2:",_objectID,_inventory]; }; //diag_log ("HIVE: WRITE: "+ str(_key)); _key call server_hiveWrite; }; }; Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2015 Report Share Posted April 6, 2015 Your Issue is a Comma. Change this: _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; To this: _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object, /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; Link to comment Share on other sites More sharing options...
P0k3r_OF_Sm0t Posted May 12, 2015 Report Share Posted May 12, 2015 Your Issue is a Comma. Change this: _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; To this: _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object, /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; It already has the comma - , _object getVariable["bankMoney",0] I had this issue at first too and it was because I did not see that comma the first time. The way his is is correct, it's something else causing it. I don't know what though. Mine is exactly like his and works fine. When it was like this: _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object /*ZSC*/ _object getVariable["bankMoney",0] /*ZSC*/ ]; The inventories got wiped, when it was like this: _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object, /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; It would not even boot. Once I noticed the comma and changed it to: _inventory = [ getWeaponCargo _object, getMagazineCargo _object, getBackpackCargo _object /*ZSC*/ , _object getVariable["bankMoney",0] /*ZSC*/ ]; Everything worked perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now