Minor Complications

03/11/2011 08:14 iAmTaurus#1
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.
03/11/2011 08:27 Syst3m_W1z4rd#2
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.
03/11/2011 15:12 crazyrican8#3
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
}
03/11/2011 23:04 tanelipe#4
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
03/12/2011 08:55 -impulse-#5
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
03/12/2011 09:30 Iron~Man#6
I thought you are coding a source from scratch..