NockyCZ / CS2-Deathmatch

Custom Deathmatch CS2 plugin (Includes custom spawnpoints, multicfg, gun selection, spawn protection, etc).
https://buymeacoffee.com/sourcefactory
73 stars 12 forks source link

The given key 'HeadshotKillSound' was not present in the dictionary #61

Closed NockyCZ closed 2 months ago

NockyCZ commented 2 months ago
[39;49m[37m17:52:15[39;49m[39;49m[30m [[39;49m[39;49m[37m[39;49m[37m[41mEROR[39;49m[39;49m[30m] (cssharp:[39;49m[39;49m[37mCore[39;49m[39;49m[30m) [39;49m[39;49m[37mError invoking callback[39;49m
[39;49m[37mSystem.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.[39;49m
[39;49m[37m ---> System.Collections.Generic.KeyNotFoundException: The given key 'HeadshotKillSound' was not present in the dictionary.[39;49m
[39;49m[37m   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)[39;49m
[39;49m[37m   at Deathmatch.Deathmatch.OnPlayerDeath(EventPlayerDeath event, GameEventInfo info) in C:\Users\Mates-PC\Desktop\SourceFactory\Projects\CSharp\Deathmatch\Deathmatch\Events.cs:line 160[39;49m
[39;49m[37m   at InvokeStub_GameEventHandler`1.Invoke(Object, Span`1)[39;49m
[39;49m[37m   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)[39;49m
[39;49m[37m   --- End of inner exception stack trace ---[39;49m
[39;49m[37m   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)[39;49m
[39;49m[37m   at System.Delegate.DynamicInvokeImpl(Object[] args)[39;49m
[39;49m[37m   at CounterStrikeSharp.API.Core.FunctionReference.<CreateWrappedCallback>b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 100[39;49m