Arduino Mega- Unknown command: attach(10)

Maybe there's a problem with your code?