Register for your free account! | Forgot your password?

You last visited: Today at 13:25

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

Advertisement



5165 Error X_X

Discussion on 5165 Error X_X within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 22
Received Thanks: 1
5165 Error X_X

Aite since i like aint a decent coder, I got a error on ma source


The name 'Skill' does not exist in this current context

It was for the Reflect Fix Release,

Code:
                        for (int n = 0; n < 5; n++)
                        {
                            BW.Write((byte)0);//WH[n] Count
                            //Warehouse[n]
                        }
                        BW.Write((byte)0);//WH[5] Count
                        //Warehouse[5]

                        BW.Write((byte)0);//Prof Count

                        if (Job != 100)
                            BW.Write((byte)0);//SkillCount
                        else
                        {
                            BW.Write((byte)2);//SkillCount
                            Game.Skill S = new Game.Skill() { ID = 1000 };
                            S.WriteThis(BW);
                            S = new Game.Skill() { ID = 1005 };
                            S.WriteThis(BW);
                        }

                        BW.Write((byte)0);//Friend Count
                        BW.Write((byte)0);//Enemy Count
                        

                        BW.Write(false);
                        BW.Write((int)0);
                        BW.Write((int)0);
                        BW.Write((long)0);
                        BW.Write((int)0);
                        BW.Write((byte)0);
                        BW.Write((byte)0);
                        BW.Write((byte)1);//Merchant
                        BW.Write(0);//  
                        BW.Write(DateTime.Now.Ticks);
                        BW.Write((ushort)0);
                        BW.Write(false);
                        BW.Write((byte)0);//lottery uses today
                        BW.Write("0");//WH Pass
                        BW.Write("None");//Spouse Name
                        BW.Write((uint)0);//Quiz Pts  
                        BW.Write((int)0);//TopEffect
                        BW.Flush();
                        FS.Flush();

                        BW.Close();
                        FS.Close();
                         FS = new FileStream(@"C:\OldCODB\Users\" + Account + ".usr", FileMode.Append);
                        BW = new BinaryWriter(FS);
                        BW.Write((byte)Name.Length);
                        BW.Write(Encoding.ASCII.GetBytes(Name));
                        BW.Flush();
                        FS.Flush();
                        BW.Close();
                        FS.Close();
                        Game.Character C = LoadCharacter(Name, ref Account);
                        if ([COLOR="Red"][B]Skill.ID[/B][/COLOR] == 3060)
                            C.CanReflect = true;
                        if (C != null)
                        {
                            C.UniversityPoints = 0;
                            C.Top = 0;
                            SaveCharacter(C, Account);
                        }
                    }
                    catch { return "Error! Try again."; }
                    return "ANSWER_OK";
                }
                return "Error: Character already exists!";

            }
            catch (Exception Exc) { Console.WriteLine(Exc); return "Failed to create the character."; }
        }
    }
The bit in red/bold is the error :P
jackmacc is offline  
Old 02/20/2010, 10:49   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
You are supposed to be adding this to the load char sequence, not the save char.
Arcо is offline  
Reply


Similar Threads Similar Threads
Error with 5165
06/23/2010 - CO2 Private Server - 7 Replies
I get this error when i debug the project in c# http://img139.imageshack.us/img139/6204/errorcy.j pg Any idea how can i fix this? Edit: I'm getting another error when a char log in http://img28.imageshack.us/img28/4418/error2zh.jp g
5165 Error!
03/04/2010 - CO2 Private Server - 4 Replies
I followed Korvacs guide to run a 5165 server on Windows 7. Afterwards I tried to run the server, it got to the point where it says "Dmaps loaded successfully in 208 milliseconds" At that point it will go back to Visual C# and highlight In DMap.cs line 124 I need help.
5165 console error!
02/09/2010 - CO2 Private Server - 7 Replies
I open the server,and when i try to log in...that happens...idk why thou... Starting to load DMaps. Loading 1000 : C:\OldCODB\map/map/desert.DMap Loading 1001 : C:\OldCODB\map/map/d_antre01.DMap
how i fix this error in c# 5165
01/16/2010 - CO2 Private Server - 15 Replies
how i fix this error http://img85.imageshack.us/img85/1940/48502865.jp g
[Help] plz what is that error 5165
12/31/2009 - CO2 Private Server - 11 Replies
when im made my server non hamachi in 5165 thats give me that error when any one try to logging to my server and he can't log and im changed the source and still same prop http://i46.tinypic.com/1zvu99s.jpg



All times are GMT +1. The time now is 13:27.


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