View Single Post
Research
SourceMod Donor
Join Date: Nov 2011
Old 01-23-2015 , 08:24   Re: [TF2] Dispenser Detonator (0.2)
Reply With Quote #11

Quote:
Originally Posted by MasterOfTheXP View Post
It's because the plugin isn't checking if the entity is in fact an edict before using GetEdictClassname (an easy-to-forget problem in OnEntityDestroyed...although perhaps OnEntityDestroyed only cared about edicts at the time? Maybe?)

This should fix it.
thanks for fix but still error

Code:
L 01/23/2015 - 21:59:09: [SM] Native "GetEdictClassname" reported: Invalid edict (3 - 3)
L 01/23/2015 - 21:59:09: [SM] Displaying call stack trace for plugin "dispenser_detonator.smx":
L 01/23/2015 - 21:59:09: [SM]   [0]  Line 194, dispenser_detonator.sp::OnEntityDestroyed()
L 01/23/2015 - 22:03:47: [SM] Native "GetEdictClassname" reported: Invalid edict (5 - 5)
L 01/23/2015 - 22:03:47: [SM] Displaying call stack trace for plugin "dispenser_detonator.smx":
L 01/23/2015 - 22:03:47: [SM]   [0]  Line 194, dispenser_detonator.sp::OnEntityDestroyed()
L 01/23/2015 - 22:04:40: [SM] Native "GetEdictClassname" reported: Invalid edict (3 - 3)
L 01/23/2015 - 22:04:40: [SM] Displaying call stack trace for plugin "dispenser_detonator.smx":
L 01/23/2015 - 22:04:40: [SM]   [0]  Line 194, dispenser_detonator.sp::OnEntityDestroyed()
L 01/23/2015 - 22:05:46: [SM] Native "GetEdictClassname" reported: Invalid edict (4 - 4)
L 01/23/2015 - 22:05:46: [SM] Displaying call stack trace for plugin "dispenser_detonator.smx":
L 01/23/2015 - 22:05:46: [SM]   [0]  Line 194, dispenser_detonator.sp::OnEntityDestroyed()
L 01/23/2015 - 22:11:35: [SM] Native "GetEdictClassname" reported: Invalid edict (5 - 5)
L 01/23/2015 - 22:11:35: [SM] Displaying call stack trace for plugin "dispenser_detonator.smx":
L 01/23/2015 - 22:11:35: [SM]   [0]  Line 194, dispenser_detonator.sp::OnEntityDestroyed()
L 01/23/2015 - 22:13:52: [SM] Native "GetEdictClassname" reported: Invalid edict (4 - 4)
L 01/23/2015 - 22:13:52: [SM] Displaying call stack trace for plugin "dispenser_detonator.smx":
L 01/23/2015 - 22:13:52: [SM]   [0]  Line 194, dispenser_detonator.sp::OnEntityDestroyed()
L 01/23/2015 - 22:13:52: [SM] Native "GetEdictClassname" reported: Invalid edict (6 - 6)
L 01/23/2015 - 22:13:52: [SM] Displaying call stack trace for plugin "dispenser_detonator.smx":
L 01/23/2015 - 22:13:52: [SM]   [0]  Line 194, dispenser_detonator.sp::OnEntityDestroyed()
L 01/23/2015 - 22:13:52: [SM] Native "GetEdictClassname" reported: Invalid edict (7 - 7)
L 01/23/2015 - 22:13:52: [SM] Displaying call stack trace for plugin "dispenser_detonator.smx":
L 01/23/2015 - 22:13:52: [SM]   [0]  Line 194, dispenser_detonator.sp::OnEntityDestroyed()
Research is offline