The Weirdness doesn't stop here

All of the sudden, this:
ENTITY* playerEnt = ent_createlocal("bot2.mdl" , posVector , playerEntity );
doesn't attach playerEntity() function to the model!!!
If I cheat it, it works:
ENTITY* playerEnt = ent_createlocal("bot2.mdl" , posVector , NULL );
playerEntity( playerEnt );
Talk about bugs

I'm feeling desperate now...