Chaos Project

Game Development => Sea of Code => Topic started by: Xero on January 21, 2011, 10:47:42 pm

Title: [C#][Resolved]Need help with a simple (I hope) error
Post by: Xero on January 21, 2011, 10:47:42 pm
So the story is that I'm working on my 11th grade programming class's final project. We have to make a game in C#. Not so strong in C# so I kinda need your help guys fixing this error I'm getting or at least tell me what it means.

The error says: "A local variable named 'output' cannot be declared in this scope because it would give a different meaning to 'output', which is already used in a 'parent or current' scope to denote something else.

SORRY FOR BEING NOOB :)

Here's a screenshot in case you guys need one:
Spoiler: ShowHide
(http://img34.imageshack.us/img34/1061/cprogerror.png)






Title: Re: [C#]Need help with a simple (I hope) error
Post by: ForeverZer0 on January 21, 2011, 10:58:19 pm
It means you are attempting to create a local variable that uses the same namespace as another defined in its super class. Don't label it as "output". Pick another name.
Title: Re: [C#]Need help with a simple (I hope) error
Post by: Xero on January 21, 2011, 11:27:15 pm
Thanks lots mastah