array bound is not an integer constant before ';' token/ on myservo.attach(9)

You guys were right thank you very much. Stupid mistakes from building apps for long, need to take more brakes in between coding.