Jump to content

dosiin

Member
  • Posts

    6
  • Joined

  • Last visited

Everything posted by dosiin

  1. You are truly amazing. I don't know English and am very interested in programming, but I was at a loss after referring to various plugins and contacting chatGPT. It has been resolved. thank you so much. The second question was simply a matter of order.
  2. Thank you. I think it has now been resolved in that plugin. The problem is that I have written a plugin for the purpose of linking to the web and generating statistics. I get the same error. Please one more time. void OnEntityDeath(BaseCombatEntity entity, HitInfo info) { BasePlayer player = info.InitiatorPlayer; if (!entity || info == null) return; if(entity.name.Contains("barrel")) { BarryWebRequest2?.Call("BWR2","kostat","barrel"); } else if(entity.name.Contains("scarecrow")) { BarryWebRequest2?.Call("BWR2","kostat","scarecrow"); } else if(entity.name.Contains("scientist")) { BarryWebRequest2?.Call("BWR2","kostat","scientist"); } else if(entity.name.Contains("stag")) { BarryWebRequest2?.Call("BWR2","kostat","stag"); } else if(entity.name.Contains("bear")) { BarryWebRequest2?.Call("BWR2","kostat","bear"); } else if(entity.name.Contains("boar")) { BarryWebRequest2?.Call("BWR2","kostat","boar"); } else if(entity.name.Contains("wolf")) { BarryWebRequest2?.Call("BWR2","kostat","wolf"); } else if(entity.name.Contains("chicken")) { BarryWebRequest2?.Call("BWR2","kostat","chicken"); } else { return; } } Every time an NPC is captured, the plugin is called and counted, but an error occurs for the same reason.
  3. if(player != null || entity != null || info != null) { if(entity.name != null) { I tried it, but the error keeps occurring. Is there anything else I should check?
  4. Failed to call hook 'OnEntityDeath' on plugin 'dosiin v2.2.3' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.dosiin.OnEntityDeath (BaseCombatEntity entity, HitInfo info) [0x0002c] in <a7bf8e4281df4231b379117211eb9622>:0 at Oxide.Plugins.dosiin.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0007e] in <a7bf8e4281df4231b379117211eb9622>: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
  5. It conflicts with other plugins that use the OnEntityDeath hook, causing a null error. player, info I tried debugging to see if null occurs in entity.name, but It was of no use and a null error occurred in a situation where the base was destroyed, causing serious lag on the server. Is there any solution? I would like to know if there is a point I am noticing, a debug method, or the cause. Note: An error occurs in Bearrels created by redBDGR. Create a debug plugin I checked, but an error still occurs in OnEntityDeath.
1.7m

Downloads

Total number of downloads.

8.1k

Customers

Total customers served.

121.9k

Files Sold

Total number of files sold.

2.5m

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.