Register for your free account! | Forgot your password?

You last visited: Today at 15:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Simple case

Discussion on Simple case within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 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)..
.Guru is offline  
Old 02/23/2011, 15:37   #17
 
.Kinshi's Avatar
 
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.
.Kinshi is offline  
Old 02/23/2011, 17:09   #18
 
StarEvaAfta!~'s Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 180
Received Thanks: 82
Request close, bcuz we dun know any **** bout programming
StarEvaAfta!~ is offline  
Old 02/23/2011, 17:18   #19
 
_Emme_'s Avatar
 
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; }
}
_Emme_ is offline  
Thanks
1 User
Old 02/23/2011, 21:48   #20


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
Every problem`s source is Navicat.
KraHen is offline  
Old 02/24/2011, 00:37   #21
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Quote:
Originally Posted by KraHen View Post
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 -.-
.Beatz is offline  
Old 02/24/2011, 01:31   #22
 
elite*gold: 0
Join Date: Aug 2009
Posts: 930
Received Thanks: 448
Quote:
Originally Posted by .Kinshi View Post
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.
.Guru is offline  
Old 02/24/2011, 14:42   #23
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
Quote:
Originally Posted by .Beatz View Post
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.
Syst3m_W1z4rd is offline  
Old 02/24/2011, 20:23   #24


 
KraHen's Avatar
 
elite*gold: 0
Join Date: Jul 2006
Posts: 2,216
Received Thanks: 793
Quote:
Originally Posted by .Beatz View Post
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!
KraHen is offline  
Old 02/24/2011, 21:18   #25
 
12tails's Avatar
 
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...

^^
12tails is offline  
Old 02/24/2011, 21:24   #26
 
elite*gold: 0
Join Date: Sep 2008
Posts: 1,683
Received Thanks: 505
Quote:
Originally Posted by EmmeTheCoder View Post
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?
Basser is offline  
Old 02/24/2011, 21:31   #27
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,161
?
_Emme_ is offline  
Old 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");
Code:
switch(colorName)
Syst3m_W1z4rd is offline  
Old 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.
_tao4229_ is offline  
Old 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
Spirited42 is offline  
Reply


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.