|
You last visited: Today at 15:07
Advertisement
Simple case
Discussion on Simple case within the CO2 Private Server forum part of the Conquer Online 2 category.
02/23/2011, 14:41
|
#16
|
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
|
It was a joke you fucktard(s)..
|
|
|
02/23/2011, 15:37
|
#17
|
elite*gold: 0
Join Date: Dec 2010
Posts: 341
Received Thanks: 255
|
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.
Pretty awesome.
|
|
|
02/23/2011, 17:09
|
#18
|
elite*gold: 0
Join Date: Feb 2010
Posts: 180
Received Thanks: 82
|
Request close, bcuz we dun know any **** bout programming
|
|
|
02/23/2011, 17:18
|
#19
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
Quote:
control cannot fall through from one case label
|
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; }
}
|
|
|
02/23/2011, 21:48
|
#20
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
|
Every problem`s source is Navicat.
|
|
|
02/24/2011, 00:37
|
#21
|
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
|
Quote:
Originally Posted by KraHen
Every problem`s source is Navicat.
|
I have never had a problem with navicat and I don't see how it could give anyone any problems...
All it does is insert into MySql, it doesn't contribute to server lag or anything like that -.-
|
|
|
02/24/2011, 01:31
|
#22
|
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
|
Quote:
Originally Posted by .Kinshi
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.
Pretty awesome.
|
|
|
|
02/24/2011, 14:42
|
#23
|
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
|
Quote:
Originally Posted by .Beatz
I have never had a problem with navicat and I don't see how it could give anyone any problems...
All it does is insert into MySql, it doesn't contribute to server lag or anything like that -.-
|
My signature speaks the truth. The person who made worlds best source is saying the words.
|
|
|
02/24/2011, 20:23
|
#24
|
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
|
Quote:
Originally Posted by .Beatz
I have never had a problem with navicat and I don't see how it could give anyone any problems...
All it does is insert into MySql, it doesn't contribute to server lag or anything like that -.-
|
O really? I never knew that! Thanks, now I don`t have to die stupid!
|
|
|
02/24/2011, 21:18
|
#25
|
elite*gold: 0
Join Date: Apr 2009
Posts: 773
Received Thanks: 441
|
Navicat don't give any problem... what is wrong is MySql... please don't misunderstand it... Navicat is Navicat and MySql is MySql...
>> Navicat = Program to manage mysql,postgreesql,oracle and others...
^^
|
|
|
02/24/2011, 21:24
|
#26
|
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
|
Quote:
Originally Posted by EmmeTheCoder
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; }
}
|
Is dat how it works these days?
|
|
|
02/24/2011, 21:31
|
#27
|
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
|
?
|
|
|
02/24/2011, 21:36
|
#28
|
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
|
Emme this is a little funny.
Code:
Console.WriteLine("Enter a number");
|
|
|
02/25/2011, 05:21
|
#29
|
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
|
tl;dr
C# won't let you fall down cases.
srsly.
|
|
|
02/25/2011, 05:59
|
#30
|
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
|
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
|
|
|
|
|
Similar Threads
|
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...
|
Simple Question Needs Simple Answer[If CR gone what bot we can use]
08/08/2008 - Cabal Online - 2 Replies
If CR is not free what BOT can we use in PH... Many players in Ph asking that question....
TY...
|
All times are GMT +2. The time now is 15:07.
|
|