fixed find_entity
This commit is contained in:
parent
0b129c3a9f
commit
d3a58298c9
|
@ -1832,15 +1832,12 @@ static cell AMX_NATIVE_CALL create_entity(AMX *amx, cell *params) {
|
|||
//ej ref'd by jghg
|
||||
static cell AMX_NATIVE_CALL find_entity(AMX *amx, cell *params) /* 3 param */
|
||||
{
|
||||
edict_t *pSearch_after_ent = INDEXENT(params[1]);
|
||||
|
||||
char* sCatagory = NULL;
|
||||
edict_t *pEnt = INDEXENT(params[1]);
|
||||
|
||||
int len;
|
||||
char* sValue = GET_AMXSTRING(amx, params[3], 1, len);
|
||||
|
||||
edict_t *pEnt = FIND_ENTITY_BY_STRING(pSearch_after_ent, "classname", sValue);
|
||||
char* sValue = GET_AMXSTRING(amx, params[2], 1, len);
|
||||
|
||||
pEnt = FIND_ENTITY_BY_STRING(pEnt, "classname", sValue);
|
||||
|
||||
if(pEnt) // This even needed?
|
||||
return ENTINDEX(pEnt);
|
||||
|
|
Loading…
Reference in New Issue
Block a user