[Help]5355

03/15/2011 03:15 coreymills#1
i dont see anything wrong with this code but it wont spawn the mobs

Code:
public static void GetSpawns()
        {
            MySqlCommand cmd = new MySqlCommand(MySqlCommandType.SELECT);
            cmd.Select("mobspawns");
            uint Count = 0;
            MySqlReader DR = new MySqlReader(cmd);
            while (DR.Read())
            {
                MobSpawn S = new MobSpawn(DR.ReadUInt16("Amount"), Dictionary.BaseMobs[DR.ReadUInt16("SpawnMob")], DR.ReadUInt16("X"), DR.ReadUInt16("Y"), DR.ReadUInt16("Spread"), DR.ReadUInt16("Map"));
                Count += (uint)S.Members.Count;
            }
            Console.WriteLine(Program.Title + " Spawning " + Count + " monsters into the world");
        }
could someone help please
03/15/2011 03:32 Arco.#2
Seriously, if you're gonna ask for help on a release, post in the release thread, don't post an entirely new thread about it.
03/15/2011 12:14 onlyme23#3
yea ...check the mob spawn if is good :P
03/15/2011 20:27 pro4never#4
so looks like you fixed the typo in there... now just go to the spawn class and fix it's problems (make sure it adds to map, adds to members, initiates missing variables that will give null reference exception, etc and you're good to go.
11/15/2011 04:00 nitrofreak06#5
I love to have this to, if you ever get it corey, lend me it XD

bump