PillsHere PillsHere for Rust | Oxide
This is the plugin I tried to get to work by changing the hook. It worked prior to this update, I read that it's been changed but I'm not sure how to call base player with the hook. Anyone know?
Unable to get OnItemUse to work
Discussion in 'Rust Development' started by TheConnor110, Jan 5, 2018.
-
Wulf Community Admin
The hook hasn't changed other than a 3rd argument being added, but that wouldn't affect the hook as you weren't using one already.
-
-
Wulf Community Admin
-
-
Wulf Community Admin
-
What is it you use to call OnItemUse now then as I can't seem to get it to work.
Here's the error:
Failed to call hook 'OnItemUse' on plugin 'PillsHere v3.0.2' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.PillsHere.OnItemUse (.Item item, Int32 amountToUse) [0x00000] in :0 at Oxide.Plugins.PillsHere.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in :0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in :0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in :0
[DOUBLEPOST=1515195342][/DOUBLEPOST]Sorry if the error is obvious but I don't seem to understand what's wrong. -
Wulf Community Admin
-
Sorry but I'm not quite sure what you mean by reflection use with lastValue
Apologies as this is obviously noobie stuff
[DOUBLEPOST=1515196876][/DOUBLEPOST]
[DOUBLEPOST=1515197513][/DOUBLEPOST]