[Help]put portals to ini files

11/15/2008 20:02 taylor2846#1
ok fixed the earrors but for som reson portals dont work any help plz?
Code:
        public static void LoadPortals()
        {
            try
            {
                string[] PortalsC = File.ReadAllLines(System.Windows.Forms.Application.StartupPath + @"\Data\load\portals.ini");
                Portals = new ushort[PortalsC.Length][];
                for (int i = 0; i < PortalsC.Length; i++)
                {
                    string[] a = PortalsC[i].Split('#');
                    Portals[i] = new ushort[6] { ushort.Parse(a[1]), ushort.Parse(a[1]), ushort.Parse(a[3]), ushort.Parse(a[4]), ushort.Parse(a[5]), ushort.Parse(a[6]) };
                }
            }
            catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
        }
and i set my ini files up like this

Code:
1#1002#224#197#1015#1010#710#
2#1002#963#557#1011#11#376#
3#1002#555#964#1020#381#21#
11/15/2008 20:21 Valkmax#2
May I ask why your using
Quote:
mobs.ini
on portals o.0 weird name.
11/15/2008 20:38 taylor2846#3
fixed but now if i go into a portal it just put me be behind the portal
11/16/2008 11:00 KraHen#4
Did you put the correct information into the INI?
11/16/2008 12:03 YukiXian#5
Quit if you can't...
11/16/2008 15:25 tao4229#6
Quote:
Originally Posted by YukiXian View Post
Quit if you can't...
Hypocrite.