Although I read this topic, but could not find a specific answer to the question.
You have to do this:
PHP Code:
if (IsValidEntity(ent) && IsValidEdict(ent)) ...
or:
PHP Code:
if (IsValidEntity(ent)) ...
or:
PHP Code:
if (IsValidEdict(ent)) ...
???
Give an example of proper and improper use of these functions