Jump to content

Scarecrow kill error

Pending 1.9.4

boostypunk
boostypunk

Posted

An error that occurs after killing a scarecrow.

Failed to call hook 'OnPlayerDeath' on plugin 'RandomRaids v1.9.4' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.RandomRaids.OnPlayerDeath (BasePlayer player, HitInfo info) [0x000a0] in <d1b53c95b4f1490abca7592669a5941d>:0 nts, 0 slprs                                                                               4kb/s in, 8kb/s out
  at Oxide.Plugins.RandomRaids.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00c2e] in <d1b53c95b4f1490abca7592669a5941d>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d82f1fa409f84967ab685a3dbdd116ae>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <2a1b2b9b0c9d45ea87d32bff811299cc>:0

Razor

Posted

what plugin are you spawning the scarecrow with?

boostypunk

Posted (edited)

Failed to call hook 'OnPlayerDeath' on plugin 'RandomRaids v1.9.5' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.RandomRaids.OnPlayerDeath (BasePlayer player, HitInfo info) [0x000a0] in <357ae9373110436aa65e493492b7c516>:0 nts, 0 slprs                                                                              4kb/s in, 12kb/s out
  at Oxide.Plugins.RandomRaids.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00c2e] in <357ae9373110436aa65e493492b7c516>:0
  at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <9c80d821d00a44c9a24497c73ad2d20d>:0
  at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d646191a355d43a6b3ab36b7ee14c740>:0
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d646191a355d43a6b3ab36b7ee14c740>:0

Plugin is here - Advanced Random Scarecrow Spawner

Edited by boostypunk
edit
Razor

Posted

Sorry im not buying his plugin to see what hes not setting correctly

Razor

Posted (edited)

4 minutes ago, Razor said:

Sorry im not buying his plugin to see what hes not setting correctly as i null check everything onPlayerDeath

if (player == null || info == null || info.InitiatorPlayer == null || !info.InitiatorPlayer.userID.IsSteamId() || player is RandomRaider || player.skinID == 14922524) return;           
            string name = player.ShortPrefabName;
            if (!string.IsNullOrEmpty(name))

 

Edited by Razor

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.3m
Total downloads
Customers
10.7k
Customers served
Files Sold
154.6k
Marketplace sales
Payments
3.3m
Processed total
×
×
  • 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.