help with "error was not declared in this scope"

oh hadn't noted it, anyway already solved it.
the code is already working and really well thanks a lot for all your help