Thread: Level System 3
View Single Post
Old 11-11-2007, 04:23 PM   #60 (permalink)
Ki Frost
Forum Novice
 
Ki Frost's Avatar
 
Join Date: Dec 2005
Age: 19
Posts: 743
Send a message via ICQ to Ki Frost Send a message via MSN to Ki Frost
Default

ok, 2 problems in your pm.

one is that when you changed the case from 26 to 27 you didnt change the goto number. It should be 26 not 25.

Code:
                case 27:
                    {
                        m_Level = reader.ReadInt();
                        m_MaxLevel = reader.ReadInt();
                        m_Exp = reader.ReadInt();
                        m_ToLevel = reader.ReadInt();
                        m_kxp = reader.ReadInt();

                        goto case 26; //goto case 25;
                    }
another one is that you have 2 ints that define "version" (though i dont know if this causes any problems.)

Code:
            writer.Write((int)27); // version

            //Level System
            writer.Write((int)m_Level);
            writer.Write((int)m_MaxLevel);
            writer.Write((int)m_Exp);
            writer.Write((int)m_ToLevel);
            writer.Write((int)m_kxp);
            //End Level System

/*GD13_HS_Start_6*/
			//writer.Write( (int) 26 ); // version

			writer.Write( (int)m_HuntMode );
			writer.Write( (int)m_HuntRank );
so, put the //'s infront of the things in red (like i did) or remove them, and then go from there.


also, when posting information multiple times, use the edit button on your post
__________________
Ki Frost is offline   Reply With Quote