Problem calling a function from another function

Looks to me like the code doesn't compile.