thanks for the time MrTwiggy

ahmmm,. yup, i declared the mangyanenemy as ENTITY* at the top.
i cant make the mangyanenemy = ent_create("mangyan.mdl", vector(0,-100,-10),NULL);
to
ent_create("mangyan.mdl", vector(0,-100,-10),func_backselectenemy);
because the entity will be loaded in the environment and the there is a button cancel where i'll put the func_backselectenemy so that it will be back again in the main menu.