hello,
for the following code
Code:
if (client != INVALID_ENT_REFERENCE)
{
new iSpecModeUser = GetEntProp(client, Prop_Send,"m_iObserverMode");
}
generates the follwoing in sourcemod error logs
Code:
L 12/08/2011 - 12:25:54: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:54: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:54: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:55: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:55: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:55: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:55: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:55: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:55: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:55: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:55: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:55: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:56: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:56: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:56: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:56: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:56: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:56: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:57: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:57: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:57: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:57: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:57: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:57: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:57: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:57: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:57: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:58: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:58: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:58: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:58: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:58: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:58: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:59: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:59: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:59: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:59: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:59: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:59: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:25:59: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:25:59: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:25:59: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:26:00: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:26:00: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:26:00: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:26:00: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:26:00: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:26:00: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:26:01: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
L 12/08/2011 - 12:26:01: [SM] Displaying call stack trace for plugin "cPMod.smx":
L 12/08/2011 - 12:26:01: [SM] [0] Line 591, C:\Users\<user>\Desktop\sourcemod-1.4.0-windows\addons\sourcemod\scripting\cPMod.sp::Timer_UpdateHudHint()
L 12/08/2011 - 12:26:01: [SM] Native "GetEntProp" reported: Entity 1 (1) is invalid
how can i fix this
im new to coding
ive tried searching the forums and google to no avail
that is only a small portion of the error logs which take up about 80 mb per day
the invalid entity also chnages // not always 1