[CS:GO] Invalid Edict.
Hello.
I have tried searching the forums, but I could not really figure out a solution to my problem. So now I decided to make a thread, to maybe get an answer to my questions. I have this code Code:
public OnEntitySpawned(entity) Code:
L 04/24/2021 - 06:01:16: [SM] Call stack trace: Thank you in advance! |
Re: [CS:GO] Invalid Edict.
So which one is line 334?
|
Re: [CS:GO] Invalid Edict.
Quote:
It is this line of code: Code:
333 decl String:class_name[32]; |
Re: [CS:GO] Invalid Edict.
Move the IsValidEntity(entity) check above that line, like this:
PHP Code:
Since you are working with that entity, any code you have regarding that entity that comes before validating it first is prone to causing that "invalid entity index" or "invalid edict" error. You always want to validate an entity first before working with it. |
Re: [CS:GO] Invalid Edict.
Quote:
|
All times are GMT -4. The time now is 19:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.