Jump to content

I foudn this bug for you

Closed 1.1.15

MrLiquid
MrLiquid

Posted

This command works great in-game

/givescrappercurrency 100 - gives 100 scrapper currency to the player.

BUT

When using this command in game /givescrappercurrency PLAYERNAME 100 - gives new guy 100 scrapper currency.

 

you get the error listed below, however command works fine in console

 

Failed to call hook 'GiveScrapperCurrency' on plugin 'EpicLoot v1.1.15' (FormatException: Input string was not in a correct format.)
  at System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) [0x0001a] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) [0x00016] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.Int32.Parse (System.String s, System.IFormatProvider provider) [0x00017] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at System.Convert.ToInt32 (System.String value) [0x0000b] in <2161c9885dd04ff291b79db9349c4b9b>:0 
  at Oxide.Plugins.EpicLoot.GiveScrapperCurrency (BasePlayer player, System.String command, System.String[] args) [0x00020] in <f74c62dc8a744e5daa62781e4d5756b9>:0 
  at Oxide.Plugins.EpicLoot.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00df2] in <f74c62dc8a744e5daa62781e4d5756b9>:0 
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <87ce9ac9776a48658bc55eae6debe38b>:0 
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <18d4f19bbc844191b11ed9e69284d09b>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <18d4f19bbc844191b11ed9e69284d09b>:0

imthenewguy

Posted

The argument for player isn't accepted in the chat command, only the console command.

MrLiquid

Posted

ahh my mistake, might I suggest you remove the leading "/" from the website command example, its how I was mislead.

 

Thank you

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.