you declered the 2 variables with the exact same name (one float and one bool), try changing the names, so they wont be same. besides that, learn C++ and write your own base.