Simple case

02/22/2011 15:59 StarEvaAfta!~#1
Hey guys, i got the problem in C#

Code:
#region Exchanger
[B]case 983:
"control cannot fall through from one case label (case: 983)[/B]
02/22/2011 16:19 .Beatz#2
Quote:
Originally Posted by StarEvaAfta!~ View Post
Hey guys, i got the problem in C#

Code:
#region Exchanger
[B]case 983:
"control cannot fall through from one case label (case: 983)[/B]
case 983:
break;

Have a read through my tut on how to make an NPC OR look at the NPCs that have already been done in your source :facepalm:
02/22/2011 16:46 StarEvaAfta!~#3
i did already took a look on the NPCs and ive putted a break at the down of the region and there's no breaks at whole NPCs, anyway ive putted it and
Code:
if (control == 0)
"if" gives a warning says "unreachable code detected"

many thanks for your help
02/22/2011 16:52 KraHen#4
It goes like this...

case xyz:
{
// code goes here;
break;
}
02/22/2011 17:07 StarEvaAfta!~#5
That what i made, but it gives the case error, can u solve the "if" case ?
02/22/2011 17:14 Syst3m_W1z4rd#6
Go read Hybrids tutorials.
02/22/2011 17:14 KraHen#7
That. Or Google. Or both.
02/22/2011 17:43 StarEvaAfta!~#8
Can some1 tell me Hybrid's tuts link ? i couldn find it
02/22/2011 19:04 Syst3m_W1z4rd#9
[Only registered and activated users can see links. Click Here To Register...]
02/22/2011 23:27 .Guru#10
#endregion?
02/22/2011 23:42 Arco.#11
Quote:
Originally Posted by .Guru View Post
#endregion?
lol'd
02/23/2011 01:05 .Beatz#12
Quote:
Originally Posted by .Guru View Post
#endregion?
Sorry but this made my whole entire year!

:facepalm:
02/23/2011 01:19 Arco.#13
Quote:
Originally Posted by .Beatz View Post
Sorry but this made my whole entire year!

:facepalm:
All 2 and a half months of it? ;O
02/23/2011 08:45 StarEvaAfta!~#14
Quote:
Originally Posted by .Guru View Post
#endregion?

.....Wrong post in wrong thread :facepalm:

##Problem fixed
02/23/2011 12:53 .Beatz#15
Quote:
Originally Posted by Yup Arco View Post
All 2 and a half months of it? ;O
This will keep me amused for the rest of the year!

Hmmmm Arco I broke my source :/ will #endregion fix it???

;)