Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map change crash #383

Closed
brkvlr opened this issue Mar 16, 2024 · 2 comments
Closed

map change crash #383

brkvlr opened this issue Mar 16, 2024 · 2 comments

Comments

@brkvlr
Copy link

brkvlr commented Mar 16, 2024

�[39;49m�[37m20:24:03�[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.ArgumentNullException: Schema target points to null. (Parameter 'pointer')�[39;49m
�[39;49m�[37m at CounterStrikeSharp.API.Core.CBasePlayerController.get_SteamID() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Schema/Classes/CBasePlayerController.g.cs:line 123�[39;49m
�[39;49m�[37m at Advertisement.Ads.b__10_1(EventPlayerDisconnect event, GameEventInfo _)�[39;49m
�[39;49m�[37m at InvokeStub_GameEventHandler`1.Invoke(Object, Object, IntPtr*)�[39;49m
�[39;49m�[37m at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)�[39;49m
�[39;49m�[37m --- End of inner exception stack trace ---�[39;49m
�[39;49m�[37m at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)�[39;49m
�[39;49m�[37m at System.Reflection.RuntimeMethodInfo.Invoke(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.b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 120�[39;49m

@github-actions github-actions bot added the untriaged New issue has not been triaged label Mar 16, 2024
@B3none
Copy link
Collaborator

B3none commented Mar 21, 2024

�[39;49m�[37m ---> System.ArgumentNullException: Schema target points to null. (Parameter 'pointer')�[39;49m
�[39;49m�[37m at CounterStrikeSharp.API.Core.CBasePlayerController.get_SteamID() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Schema/Classes/CBasePlayerController.g.cs:line 123�[39;49m

Make sure you're checking to ensure that player is valid / not null before you try calling getSteamID()

@B3none B3none removed the untriaged New issue has not been triaged label Mar 21, 2024
@B3none
Copy link
Collaborator

B3none commented Mar 21, 2024

Closing as this is a plugin issue, and not one with CounterStrikeSharp.

@B3none B3none closed this as completed Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants