DeadSwimek / cs2-vip

VIP System
25 stars 7 forks source link

Bug and suggestion #9

Closed chycken closed 7 months ago

chycken commented 7 months ago

Hello, installed the latest plugin version (old database deleted) and latest cssharp, plugin is working well, but I got this error on console when someone is on the server: 12:25:48 [EROR] (cssharp:Core) Error invoking callback System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Nullable object must have a value. at System.Nullable1.get_Value() at VIP.VIP.get_vip_group(CCSPlayerController player) in C:\Users\ondra\Desktop\CS2 Pluginy\VIPGUNS Public\Libs.cs:line 68 at VIP.VIP.OnClientSpawn(EventPlayerSpawn event, GameEventInfo info) in C:\Users\ondra\Desktop\CS2 Pluginy\VIPGUNS Public\Hooks.cs:line 275 at InvokeStub_GameEventHandler1.Invoke(Object, Object, IntPtr) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr args, BindingFlags invokeAttr) --- End of inner exception stack trace --- at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr args, BindingFlags invokeAttr) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Delegate.DynamicInvokeImpl(Object[] args) at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 82

Another thing/suggestion: can you delete the opportunity of /respawn command from the avialable commands list when we type !vip and the respawn function is disabled from config.?

Thanks

DeadSwimek commented 7 months ago

Fixed in new version.