Jump to content

Failed to call hook 'ChatGiveCmd'

Closed 1.1.13 1.1.14

Ac3
Ac3

Posted

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

ZEODE

Posted (edited)

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
ZEODE

Posted

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
ZEODE

Posted

Changed Status from Pending to Work in Progress

Changed Fixed In to Next Version

ZEODE

Posted

Changed Status from Work in Progress to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

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.