View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-29-2009 , 17:13   Re: [TUT] Modules and efficient scripting
Reply With Quote #28

Quote:
Originally Posted by joaquimandrade View Post
More. (I'm assuming that pev_valid(id) is equivalent to is_valid_ent(id)). If they aren't, the results are invalid.
is_valid_ent only returns 0/1 when pev_valid returns 0,1 or 2.

Code:
/**
 * Checks the validity of an entity.
 *
 * @param entindex		The entity id to check.
 *
 * @return 			0 on invalid entity
 *						1 on entity is valid
 *						2 on entity is valid and it has private data (safe to use pdata natives on).
 */
native pev_valid(entindex);
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline