C#:
RelationshipManager.PlayerTeam rmanager = new RelationshipManager().FindTeam(player.userID);
Puts(rmanager.teamLeader.ToString());
что не так, подскажите пожалуйста:)
Failed to call hook 'OnPlayerBanned' on plugin 'Test v0.0.3' (NullReferenceException: Object reference not set to an instance of an object.) at Oxide.Plugins.Test.OnPlayerBanned (BasePlayer player) [0x00011] in <b1e5feb81e984e4db548efcea71c7e7c>:0 at Oxide.Plugins.Test.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x004d0] in <b1e5feb81e984e4db548efcea71c7e7c>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <23ba99f131254889867c71f0bd137b1d>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <157a94ee66ab4a7991faecd1eb84be3b>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <157a94ee66ab4a7991faecd1eb84be3b>:0 (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)