Use the correct Syntax:
_x <- The Object / Player / Animal
nearEntities <- the function name
['CAManBase'] <- The parameter for the function
['CAManBase','Distance'] <- Correct Parameters
Correct Syntax:
(_x nearEntities ['CAManBase',25]);
Also check, if there is an "_x":
if(_x != "") then...