I love how people who don't know **** about programming are making fun of other people that don't know **** about programming because they don't know **** about programming.
This is because you're not putting a break in the current case, and trying to put another case in the first one. Simply put a break; at the end of the case.
Quote:
"if" gives a warning says "unreachable code detected"
This is because you are putting the if statement in the same bracklets as the case but under the break; Break simply breaks the code within the paragraph.
Example:
Code:
Console.WriteLine("Enter a number");
string colorName = Console.ReadLine().ToLower();
switch(colorName)
{
case "black": { Console.WriteLine("You entered black"); break; }
case "yellow": { Console.WriteLine("You entered yellow"); break; }
default: { Console.WriteLine("You entered any color"); break; }
}
I love how people who don't know **** about programming are making fun of other people that don't know **** about programming because they don't know **** about programming.
This is because you're not putting a break in the current case, and trying to put another case in the first one. Simply put a break; at the end of the case.
This is because you are putting the if statement in the same bracklets as the case but under the break; Break simply breaks the code within the paragraph.
Example:
Code:
Console.WriteLine("Enter a number");
string colorName = Console.ReadLine().ToLower();
switch(colorName)
{
case "black": { Console.WriteLine("You entered black"); break; }
case "yellow": { Console.WriteLine("You entered yellow"); break; }
default: { Console.WriteLine("You entered any color"); break; }
}
Yikes... well here's an example I made if it helps:
Code:
#region Test
switch ((client.Entity.Class / 10) * 10)
{
case 10:
case 20: // you can add them on top of each other to use the same statement.
dialog.Text("Pay a visit to Old General Yang to learn more info about your upcoming journeys.");
break; // and just use one break.
case 40:
case 50:
dialog.Text("Pay a visit to the Village Gateman to learn more info about your upcoming journeys."); break;
case 100:
dialog.Text("Pay a visit to Taoist Star to learn more info about your upcoming journeys."); break;
}
#endregion
I did laugh a little at Emme's "enter a number" example. =p
In case you want to know .. 12/21/2010 - Silkroad Online Trading - 23 Replies Just an announce :
Multiply accounting by DavidClowers a.k.a
KillaCam692 a.k.a RobertJenkins
He's a known scammer according to his feedback and people feedback towards his threads (Also invited me to be his mm, and when I asked for info he signed out the whole msn account) , take care when you deal with such a member, and never go first.
Good luck peeps.
Hi sec case 11/15/2010 - Combat Arms - 4 Replies Hey Leute ,
ich wollt mal fragen ob man eig. aus Gray Hi sec case auch ne Perma Waffe oder zumindist 90 Tage raus bekommen kann:confused:
Also ich hab bisher immer nur für einen Tag und dann eig. fast immer die gleichen (Aug A1 Black, AK 103, MP5 ras).
Jetzt Schonmal eine THANKS
Simple questions, simple answers :) 11/09/2009 - Kal Online - 2 Replies Hello guys :)
I've been reading this forum for a while, and I found very nice information here but still, some threads in german can't provide me whole knowledge I'm looking for, that's why I'm asking some questions :)
1. kiki uce - is it working on windows xp/vista ?
2. I'm willing to check that on my own, but maybe somebody knows that already - will store hack (http://www.elitepvpers.com/forum/kal-online/300254 -tutorial-money-bug-store-hack.html) work on R3volution server ? There's GBL v2...