Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
System.ArgumentException: Player with slot 4 not found
HookUserMessage(208, um =>
{
var soundevent = um.ReadUInt("soundevent_hash");
return HookResult.Continue;
}, HookMode.Pre);
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.ArgumentException: Player with slot 4 not found
at CounterStrikeSharp.API.Modules.Utils.RecipientFilter..ctor(UInt64 mask) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/Utils/RecipientFilter.cs:line 57
at CounterStrikeSharp.API.Modules.UserMessages.UserMessage..ctor(IntPtr pointer) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/UserMessages/UserMessage.cs:line 14
at InvokeStub_UserMessage..ctor(Object, Span
1) at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) --- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) at CounterStrikeSharp.API.Core.ScriptContext.GetResult(Type type, Byte* ptr) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/ScriptContext.cs:line 426 at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass18_0.<CreateWrappedCallback>b__1(ParameterInfo _, Int32 i) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 96 at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable
1 source, Func3 selector)+MoveNext() at System.Collections.Generic.LargeArrayBuilder
1.AddRange(IEnumerable`1 items)at CounterStrikeSharp.API.Core.FunctionReference.b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 94
https://discord.com/channels/1160907911501991946/1160925208203493468/1302399920413736992