Register for your free account! | Forgot your password?

You last visited: Today at 18:01

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

Advertisement



Minor Complications

Discussion on Minor Complications within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
iAmTaurus's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 5
Received Thanks: 0
Minor Complications

Error 1: Not all code paths return a value
public bool SetProficiency(Proficiency prof)

Error 2: Proficiency is used like a type
public Dictionary<ushort, Proficiency> Proficiency = new Dictionary<ushort, Proficiency >(50);

Error 3: Could not be found (Possibly due to Error 1)
Client.SetProficiency(new Proficiency(ushort.Parse(args[1]), ushort.Parse(args[2]), 0));

I know they're retarded problems but i'm trying to learn, thanks.
iAmTaurus is offline  
Old 03/11/2011, 08:27   #2
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
You can fix these errors by reading.
They are kinda obvious.
You're using the functions wrong.
Eg. for the bool it tells you need to return a value, so basically you just return it a value.

JUst write your error in google and then the language and you mostly can find the fix.
Syst3m_W1z4rd is offline  
Old 03/11/2011, 15:12   #3
 
crazyrican8's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 18
Received Thanks: 1
public bool SetProficiency(Proficiency prof)
{
return true; Since its a Bool you need to return a true/false its not a void u just cant leave it like that
}
crazyrican8 is offline  
Old 03/11/2011, 23:04   #4
 
elite*gold: 20
Join Date: Aug 2005
Posts: 1,734
Received Thanks: 1,001
Second error is thrown because you have a class/struct named Profiency and you're trying to name the variable Profiency, this causes the described error.

Solution: Change the variable name
tanelipe is offline  
Old 03/12/2011, 08:55   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
Quote:
Originally Posted by tanelipe View Post
Second error is thrown because you have a class/struct named Profiency and you're trying to name the variable Profiency, this causes the described error.

Solution: Change the variable name
Agreed ^.

For the third possibly... Not really sure, though it happens.
Actually I believe the problems comes from another .net dll being rebuilded with some variables name from another project...all he has to do is to rebuild all projects and get the dlls from their places and put them in the bin folder
-impulse- is offline  
Old 03/12/2011, 09:30   #6
 
Iron~Man's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 162
Received Thanks: 31
I thought you are coding a source from scratch..
Iron~Man is offline  
Reply


Similar Threads Similar Threads
some minor problems
02/25/2010 - EO PServer Hosting - 1 Replies
Eudemons AccountServer has stopped..... the acount server doesent want to conneced now the mysql is up and running but the account server dont want to link with it i was wondering if someone can tell me a way to get it running.
complications with artmoney oO
04/17/2009 - Kal Online - 4 Replies
hey guys Well i did lota searchs and well atm, im usin 7.29 pro artmoney. Im having some trouble with it oO It works fine but after i pick engine.exe and go to search and search value 48 ( ofc i have medium med 1st slot small med in 2nd) no addresses comes up. I tried it the other way too with small meds 47. A friend told me kalonline fixed it and now u gota use db? If anyone would like to give advice ^^ or a tut :P best regards
Need some minor help
12/29/2007 - Archlord - 5 Replies
Could anyone of U inform me of the Server Ip's? I think each server has it's own Ip... Can anyone post em here? Thx allot ;) Maybe I can get the dupe hack to work...



All times are GMT +1. The time now is 18:01.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.