-
Notifications
You must be signed in to change notification settings - Fork 25
Description
When end round - print to console
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> CounterStrikeSharp.API.Core.NativeException: Invalid game event
at CounterStrikeSharp.API.Core.NativeAPI.GetEventPlayerController(IntPtr gameevent, String name) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/API.cs:line 977
at CounterStrikeSharp.API.Modules.Events.GameEvent.GetPlayer(String name) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/Events/GameEvent.cs:line 111
at Ranks.Ranks.EventRoundMvp(EventRoundMvp event, GameEventInfo info) in E:\github\cs2-ranks\Ranks\Ranks\Ranks.cs:line 422
at InvokeStub_GameEventHandler1.Invoke(Object, Span1)
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at CounterStrikeSharp.API.Core.FunctionReference.b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 100