DarkEmu_GameServer.Systems.GetAmmoSlot C# (CSharp) Метод

GetAmmoSlot() публичный статический Метод

public static GetAmmoSlot ( character ch ) : byte
ch character
Результат byte
        public static byte GetAmmoSlot(character ch)
        {
            MsSQL ms = new MsSQL("SELECT * FROM char_items WHERE owner='" + ch.Information.CharacterID + "' AND (itemid='62' OR itemid='3655' OR itemid='10376' OR itemid='10727')");
            byte ammo = 0;
            using (System.Data.SqlClient.SqlDataReader reader = ms.Read())
            {
                while (reader.Read())
                {
                    ammo = reader.GetByte(5);
                }
                ms.Close();
                return Convert.ToByte(ammo);
            }
        }
Systems