Quote:
Originally Posted by Hunter-Digital
I'm using them for entitiy ID reset, so I would not need to write in every function "if is_valid_ent -> remove entity then set var to 0" instead just a function :}
|
that means, instead of:
Code:
if(is_valid_ent(g_iAnEnt))
remove_entity(g_iAnEnt)
g_iAnEnt = 0
on every function that I need to do that... I could just:
Code:
clear(g_iAnEnt)
clear(g_iAnotherEnt)
clear(g_iAndAnotherEnt)
//...
stock clearEnt(&ent)
{
if(is_valid_ent(ent))
remove_entity(ent)
ent = 0
}
This is solved, thank you guys
__________________