i just wanted to know what is wrong in this :
#region Plus Notice system
if (_pck.Opcode == 0xB150 && FilterMain.DB && FilterMain.PlusNotice)
{
try
{
_pck.Lock(); // Lock
_pck.ReadUInt16();
_pck.ReadUInt8();
int slot = _pck.ReadUInt8();
_pck.ReadUInt64();
int plus = _pck.ReadUInt8();
if (plus >= FilterMain.RequiredPlus && plus > 0)
{
try
{
// Get item name
SqlDataReader reader = sqlCon.Return("_GetName", new SqlParameter("@CharName", Program.Plis(this.sql_charname)), new SqlParameter("@Slot", slot));
reader.Read();
// Item name
string ItemName = reader["Name"].ToString();
// Check if name is not null.
if (ItemName != string.Empty && ItemName != null)
{
// New method, notice sender.
sqlCon.exec("INSERT INTO [" + FilterMain.SUP_DB + "].[dbo].[_Notice] (message, added) VALUES('" + Program.Plis(this.sql_charname) + " has increased [" + ItemName + "] to plus (" + plus + ")', '" + DateTime.UtcNow + "')");
}
// Close DB
reader.Close();
}
catch { }
}
}
catch { }
}
#endregion
i tried and i always fail
if somebody help me i will really appreciate ur help






