ArgumentNullException at BalanceFixed
Hi! After the update from December 2, 2021, an error appears very often in the console.
[Oxide] 11:08 [Error] Failed to call hook 'Deposit' on plugin 'Economics v3.8.6' (ArgumentNullException: Value cannot be null.
Parameter name: key)
at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Oxide.Plugins.Economics.Balance (System.String playerId) [0x00000] in <c198374b054845abb34d494754cadcbc>:0
at Oxide.Plugins.Economics.Deposit (System.String playerId, System.Double amount) [0x0000f] in <c198374b054845abb34d494754cadcbc>:0
at Oxide.Plugins.Economics.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006a7] in <c198374b054845abb34d494754cadcbc>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <9882f28dc2204b4dba514a9ad18f5042>:0

Could you provide how you used it? The Rust update wouldn't have affected it. It looks to me like a plugin calling the Deposit method isn't providing a valid player ID.

I can assume that the problem is that players are charged money for killing bots, in particular for: zombies, scarecrow.

Locked automatically