What version of Engine are you using. Write "meta list" in your console to find out.
Try using the fakemeta alternative just to see if you get a different result.
engfunc(EngFunc_FindEntityInSphere, index, Float:origin[3], Float:radius)
I can't see a reason within your code that will cause this error. For all I know, this is how that function is supposed to be used.