They may be the same, but the specific error message is above
E.g:
PHP Code:
L 03/12/2023 - 21:07:22: [SM] Exception reported: Entity 1 (1) is invalid
L 03/12/2023 - 21:07:22: [SM] Blaming: someplugin.smx
L 03/12/2023 - 21:07:22: [SM] Call stack trace:
L 03/12/2023 - 21:07:22: [SM] [0] SetEntPropEnt
L 03/12/2023 - 21:07:22: [SM] [1] Line 210, someplugin.sp::OnGameFrame
"Exception reported: Entity 1 (1) is invalid" part also matters to someone help you.
In your case if you are using "EventHookMode_PostNoCopy" you can't use Event.GetInt functions,
cause EventHookMode_PostNoCopy is just a notification,
without any values from event, just triggers after it was sent.
So you will keep having errors in log, just change to EventHookMode_Post (or leave it blank cause is the default value)
PHP Code:
enum EventHookMode
{
EventHookMode_Pre, //< Hook callback fired before event is fired */
EventHookMode_Post, //< Hook callback fired after event is fired */
EventHookMode_PostNoCopy //< Hook callback fired after event is fired, but event data won't be copied */
};
__________________