tried to seperate the functions but doesn't work

The arduino environment has some problems while compiling. Or I'm to
stupid...