The button you create needs a rectangle to tell it where on the screen you want it, and the width and height of the button. So, that's 4 pieces of data (x, y, width, height). However, in your code you are giving the rectangle a fifth parameter, `hostData[y].gameName` which is not needed. So, the compiler is telling you that this 5th value indicates you have made a mistake.
To fix your mistake, simply move one of your closing brackets after the `300f`.
↧