- Home /
error CS1729: The type `UnityEngine.Rect' does not contain a constructor that takes `5' arguments
Please help me. It says that the problem is on line 39.
Line 39:
GUI.Label (new Rect(Screen.width / 2 - 150, 200, 2000, 1000, "PLAYER ONE WINS"));
Please help. Thank You.
Bored$$anonymous$$ormon already answered this but .... do you actually read the error? Do you know what a constructor is? Do you know what an argument is? If you don't, it's really (REALLY) time to look it up.
This is like you're driving your car for one and a half years now and suddenly you ask yourself what the middle pedal is actually good for....
I figured they were ahead of the game for being able to read the error line number. Something we don't often see in newbies.
By the way, what does that middle pedal do?
what does that middle pedal do
Ejects the passengers. What else?
Ejects the passengers
$$anonymous$$ust remember to push it down hard next time the kids are playing up.
@flaviusxvii: :) That's actually true in case you're also wondering what's that strange belt at the side of your driver seat. :D
Answer by Kiwasi · Jul 11, 2014 at 02:23 AM
Closing bracket of rect in the wrong place. Correct code as follows
GUI.Label (new Rect(Screen.width / 2 - 150, 200, 2000, 1000), "PLAYER ONE WINS");
Your answer
![](https://koobas.hobune.stream/wayback/20220613153747im_/https://answers.unity.com/themes/thub/images/avi.jpg)