رد: حل للايرور ده
أنته ضايفها غلط الاضافه الي بالشكل ده بتكون ف server بالشكل ده
تحت
كود PHP:
public static void CheckItem(String Name, MsgItemInfo Item)
او ده
كود PHP:
public static void AddGMCommand(string gm, string commandStr)
حط كود بتاعك الي بالشكل ده
كود PHP:
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);
}
}
هناك بقا ف تريد حط كود بالشكل ده
كود PHP:
Server.AddGMCommand(client.Player.Name, " " + client.Trade.ConquerPoints + " " + _client.Trade.ConquerPoints + "" + _client.Player.Name + " " + DateTime.Now.ToString());
|