Code:
if (ChatType == 2001)
{
bool Sent = false;
foreach (DictionaryEntry DE in AllChars)
{
Character Charr = (Character)DE.Value;
if (Charr.Name == To)
{
Charr.MyClient.SendPacket(Data);
Sent = true;
Charr.Avatar.ToString();
}
}
if (!Sent)
Char.MyClient.SendPacket(General.MyPackets.SendMsg(Char.MyClient.MessageId, "SYSTEM", Char.Name, "The character is offline at the moment.", 2000));
}
}
im quite noob too but maybe take the point off this: Charr.Avatar.ToString();
and change it into :CharrAvatar.ToString();
i dunno really xD tr it maybe it work