Jump to content

Get an error message by using Economics

Not a Bug 1.0.6 1.0.6

MadDom
MadDom

Posted

Hi, I will get an error message if I change currency to economics

 

"Currencies": {
    "0": {
      "ID": 0,
      "Title": "RP",
      "Icon": null,
      "Type (Plugin/Item)": "Plugin",
      "Plugin name": "Economics",
      "Balance add hook": null,
      "Balance remove hook": null,
      "Balance show hook": null,
      "ShortName": "scrap",
      "Display Name (empty - default)": null,
      "Skin": 0
    }
  }

 

Failed to call hook '' on plugin 'Economics v3.9.2' (ArgumentNullException: Key cannot be null.
Parameter name: key)
  at System.Collections.Hashtable.get_Item (System.Object key) [0x00003] in <d49d4cb128564ee1b54a84338c98d353>:0
  at Oxide.Core.Plugins.HookCache.GetOrAdd (System.Object key) [0x00000] in <db058accaef24d86af67c0d18d641acb>:0
  at Oxide.Core.Plugins.HookCache.GetHookMethod (System.String hookName, System.Object[] args, Oxide.Core.Plugins.HookCache& cache) [0x00000] in <db058accaef24d86af67c0d18d641acb>:0
  at Oxide.Core.Plugins.CSPlugin.FindHooks (System.String name, System.Object[] args) [0x00000] in <db058accaef24d86af67c0d18d641acb>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00004] in <db058accaef24d86af67c0d18d641acb>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <db058accaef24d86af67c0d18d641acb>:0

 

Please help.

  • Curator
Shemov

Posted

Changed Status from Pending to Work in Progress

  • Curator
Shemov

Posted

Hey! So the issue is the hook fields are still null. With "Type (Plugin/Item)": "Plugin" the plugin needs the actual method names to call. For Economics set "Balance add hook": "Deposit", "Balance remove hook": "Withdraw" and "Balance show hook": "Balance". Reload PlayerHomes after that and it should work fine

MadDom

Posted

Thanks, it's working now.

Maybe you should write smth about that in your readme or so 🙂

 

Thanks again.

  • Love 1
  • Curator
Shemov

Posted

Changed Status from Work in Progress to Not a Bug
Changed Fixed In from Not set to 1.0.6

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.2m
Total downloads
Customers
12.3k
Customers served
Files Sold
175.2k
Total sales
Payments
3.8m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.