Jump to content

Unable to sell items for $0

Closed 1.1.6 1.1.7

HellHunter
HellHunter

Posted

When you set the price as 0 for items, it wont work and error will appear in console as follows:

Failed to call hook 'ShoppyStockConsoleCommand' on plugin 'ShoppyStock v1.1.6' (DivideByZeroException: Attempted to divide by zero.) at Oxide.Plugins.ShoppyStock.OpenShopPurchaseUI (BasePlayer player, System.String shopName, Oxide.Plugins.ShoppyStock+ListingData listing, System.String listingKey, System.Int32 amount) [0x008cc] in <85ef8567fe004734813680a029658b00>:0 at Oxide.Plugins.ShoppyStock.ShoppyStockConsoleCommand (ConsoleSystem+Arg arg) [0x0122e] in <85ef8567fe004734813680a029658b00>:0 at Oxide.Plugins.ShoppyStock.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01e1e] in <85ef8567fe004734813680a029658b00>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

ThePitereq

Posted

On 7/21/2024 at 4:01 PM, HellHunter said:

When you set the price as 0 for items, it wont work and error will appear in console as follows:

Failed to call hook 'ShoppyStockConsoleCommand' on plugin 'ShoppyStock v1.1.6' (DivideByZeroException: Attempted to divide by zero.) at Oxide.Plugins.ShoppyStock.OpenShopPurchaseUI (BasePlayer player, System.String shopName, Oxide.Plugins.ShoppyStock+ListingData listing, System.String listingKey, System.Int32 amount) [0x008cc] in <85ef8567fe004734813680a029658b00>:0 at Oxide.Plugins.ShoppyStock.ShoppyStockConsoleCommand (ConsoleSystem+Arg arg) [0x0122e] in <85ef8567fe004734813680a029658b00>:0 at Oxide.Plugins.ShoppyStock.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x01e1e] in <85ef8567fe004734813680a029658b00>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <795304323ac74a298b8ed190a1dfa739>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in :0

Like when you set 0 where? Can you describe it a little bit more?

ThePitereq

Posted

Oh so items for free, yeath they might not be supported, will add support for free items in next update.

 

  • Like 1
ThePitereq

Posted

Changed Status from Pending to Closed

Changed Fixed In to 1.1.7

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • 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.