|
المشاركات 90 |
+التقييم 0.05 |
تاريخ التسجيل Nov 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 2578 |
أفضل جواب - كتبه Tefa |
بعد ما تخلص الي فوق |
public static void CheckItem(String Name, MsgItemInfo Item)
public static void AddGMCommand(string gm, string commandStr)
public static void AddGMCommand(string gm, string commandStr)
{
String folderN = DateTime.Now.Year + "-" + DateTime.Now.Month, Path =
"database\\gmlogs\\GMCommandsLog\\", NewPath = System.IO.Path.Combine(Path, folderN);
if (!File.Exists(NewPath + folderN))
{
System.IO.Directory.CreateDirectory(System.IO.Path.Combine(Path, folderN));
}
if (!File.Exists(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
using (System.IO.FileStream fs = System.IO.File.Create(NewPath + "\\" + DateTime.Now.Day + ".txt"))
{
fs.Close();
}
}
using (System.IO.StreamWriter file = new System.IO.StreamWriter(NewPath + "\\" + DateTime.Now.Day + ".txt", true))
{
file.WriteLine(gm + commandStr);
}
}
Server.AddGMCommand(client.Player.Name, " " + client.Trade.ConquerPoints + " " + _client.Trade.ConquerPoints + "" + _client.Player.Name + " " + DateTime.Now.ToString());