View Single Post
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 03-25-2023 , 18:17   Re: [L4D2] About "IsClientInGame()"
Reply With Quote #4

They may be the same, but the specific error message is above

E.g:

PHP Code:
L 03/12/2023 21:07:22: [SMException reportedEntity 1 (1is invalid
L 03
/12/2023 21:07:22: [SMBlamingsomeplugin.smx
L 03
/12/2023 21:07:22: [SMCall stack trace:
L 03/12/2023 21:07:22: [SM]   [0SetEntPropEnt
L 03
/12/2023 21:07:22: [SM]   [1Line 210someplugin.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 */
}; 
__________________

Last edited by Marttt; 03-25-2023 at 20:07.
Marttt is offline