Jump to content

Failed to call hook 'ChatGiveCmd'

Closed 1.1.13 1.1.14

Ac3

When i want to give myself a Grenade i get the following error in rcon 

 

Failed to call hook 'ChatGiveCmd' on plugin 'NPCGrenades v1.1.13' (IndexOutOfRangeException: Index was outside the bounds of the array.)
  at Oxide.Plugins.NPCGrenades.ChatGiveCmd (BasePlayer player, System.String command, System.String[] args) [0x00014] in <ccd81fa292a044b99e7d9c20039f9f79>:0
  at Oxide.Plugins.NPCGrenades.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00a48] in <ccd81fa292a044b99e7d9c20039f9f79>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0                   3kb/s in, 14kb/s out
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0

Share this comment


Link to comment

Hi thanks for the report, but I am unable to recreate your issue.

Please show me the full command you are using to try and give yourself grenades in game chat.

Please note, the chat command should be: /npcnade.give <type> <PlayerName>

Thanks.

Edited by ZEODE

Share this comment


Link to comment

I have worked out what you were doing wrong, you were using the chat command like this: /npcnade.give <type>

Without specifying the player it throws the exception you pasted. I will add a check in the code to make it so it will warn users if they don't include a player name. For now, use the correct command syntax and I will release an update soon anyway.

Thanks.

  • Like 1

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.4k

Files Sold

Total number of files sold.

1.6m

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.