|  | 
 
 
|  المشاركات 90 |  +التقييم 0.04 |  تاريخ التسجيل Nov 2019 |  الاقامة |  نظام التشغيل |  رقم العضوية 2578 | 
 تمت الإجابة حل للايرور ده
				تمت الإجابة حل للايرور ده
		
|  أفضل جواب - كتبه Hassan Emprator | 
| انا اقدر بس هيفشخني ومعايا كامل بي المملكه | 
 رد: حل للايرور ده
				رد: حل للايرور ده
			
		
	 
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());