Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Objects Loops and Final Touches Using Static Fields

Compiler errors

I' m having multiple compiler errors in my cod and I don't know how to fix them. https://w.trhou.se/37nnxgw71k Please Help.

3 Answers

Timothy Schmidt
Timothy Schmidt
4,806 Points

Both errors are in your Tower.Cs

  1. At line 20 you spelled IsSuccessfulShot as IsSuccesfulShot (you're missing an s).
  2. At Line 37 you wrote invader with a capital I. It should be invader.Isneutralized.

Wow, those are easy fixes. I'm sorry I wasted your time. Thank you so much.

Mike Hickman
Mike Hickman
19,817 Points

Don't think of it as wasting time. We've all been there. I've spent literally 4 hours trying to debug a problem that was just one extra "c" in 'success'. It won't be the last time you misspell something either. :p Just keep plugging along and don't be afraid to ask questions.

Cheers,

Mike

Thank you, means a lot!