Compare commits

..

1 Commits
v6 ... v7

Author SHA1 Message Date
Roflmuffin
f6935cc9d2 fix: cast long event params properly, fixes #35 2023-11-08 14:32:26 +10:00

View File

@@ -53,7 +53,7 @@ namespace CounterStrikeSharp.API.Modules.Events
_ when type == typeof(string) => GetString(name),
_ when type == typeof(bool) => GetBool(name),
_ when type == typeof(ulong) => GetUint64(name),
_ when type == typeof(long) => GetUint64(name),
_ when type == typeof(long) => (long)GetUint64(name),
_ when type == typeof(CCSPlayerController) => GetPlayer(name),
_ => throw new NotSupportedException(),
};