IF sucks ?
Hi,
I have this problem with the if command
[code:1]if(value == 1)
{
Item item = new Item( 0x203C );
}
if(value == 2)
{
Item item = new Item( 0x203D );
}
[/code:1]
and so on
The problem is:
[code:1]A local Variable named 'item' cannot be declared in this scope because it would give a different meaning to 'item', which is already used in a 'parent or current' scope to denote something else[/code:1]
Anybody knows what I can do ?
Hi,
I have this problem with the if command
[code:1]if(value == 1)
{
Item item = new Item( 0x203C );
}
if(value == 2)
{
Item item = new Item( 0x203D );
}
[/code:1]
and so on
The problem is:
[code:1]A local Variable named 'item' cannot be declared in this scope because it would give a different meaning to 'item', which is already used in a 'parent or current' scope to denote something else[/code:1]
Anybody knows what I can do ?