[HELP]gmlogs

02/03/2014 09:52 akosicamar2#1
Hi guys , Can anyone help me ? My gmlogs won't work.
Sorry guys I won't tell you my source cuz its a private source but the version of my server is 5730.

Code:
/* #region DropLog
                         var dt = DateTime.Now;
                         string date = dt.Year + "-" + dt.Month + "//";
                         string datess = +dt.Day + "//";
                         if (!Directory.Exists(System.Windows.Forms.Application.StartupPath + ServerBase.Constants.Unhandledgmlog))
                             Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog);

                         if (!Directory.Exists(System.Windows.Forms.Application.StartupPath + ServerBase.Constants.Unhandledgmlog + "\\Drop"))
                             Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Drop");

                         if (!Directory.Exists(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Drop\\" + date + ""))
                             Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Drop\\" + date + "");
                         if (!File.Exists(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Drop\\" + date + "\\" + dt.Day + ".txt"))
                             File.CreateText(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Drop\\" + date + "\\" + dt.Day + ".txt");


                         File.WriteAllText(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Drop\\" + date + "\\" + dt.Day + ".txt",
 File.ReadAllText(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Drop\\" + date + "\\" + dt.Day + ".txt") +
 "\r\n" + client.Entity.Name + " Droped item: [" + Database.ConquerItemInformation.BaseInformations[item.ID].Name + "] item UID: [" + item.UID + "] Plus: [" + item.Plus + "]");
                         #endregion*/


Code:
#region msglog
                                                var dt = DateTime.Now;
                                                string date = dt.Year + "-" + dt.Month + "//";
                                                string datess = +dt.Day + "//";
                                                if (!Directory.Exists(System.Windows.Forms.Application.StartupPath + ServerBase.Constants.Unhandledgmlog))
                                                    Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog);

                                                if (!Directory.Exists(System.Windows.Forms.Application.StartupPath + ServerBase.Constants.Unhandledgmlog + "\\msglog"))
                                                    Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\msglog");

                                                if (!Directory.Exists(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\msglog\\" + date + ""))
                                                    Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\msglog\\" + date + "");
                                                if (!File.Exists(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\msglog\\" + date + "\\" + dt.Day + ".txt"))
                                                    File.CreateText(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\msglog\\" + date + "\\" + dt.Day + ".txt");


                                                File.WriteAllText(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\msglog\\" + date + "\\" + dt.Day + ".txt",
                        File.ReadAllText(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\msglog\\" + date + "\\" + dt.Day + ".txt") +
                        "\r\n" + client.Entity.Name + " Talk to : [" + pClient.Entity.Name + "] Message: [" + message.__Message + "]");
                                                #endregion

Code:
/* #region TradeLog
                                 var dt = DateTime.Now;
                                 string date = dt.Year + "-" + dt.Month + "//";
                                 string datess = + dt.Day + "//";
                                 if (!Directory.Exists(System.Windows.Forms.Application.StartupPath + ServerBase.Constants.Unhandledgmlog))
                                     Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog);

                                 if (!Directory.Exists(System.Windows.Forms.Application.StartupPath + ServerBase.Constants.Unhandledgmlog + "\\Trade"))
                                     Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Trade");

                                 if (!Directory.Exists(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Trade\\" + date + ""))
                                     Directory.CreateDirectory(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Trade\\" + date + "");
                                 if (!File.Exists(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Trade\\" + date + "\\" + dt.Day + ".txt"))
                                     File.CreateText(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Trade\\" + date + "\\" + dt.Day + ".txt");

                                
                                 File.WriteAllText(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Trade\\" + date + "\\" + dt.Day + ".txt",
      File.ReadAllText(System.Windows.Forms.Application.StartupPath + "\\" + ServerBase.Constants.Unhandledgmlog + "\\Trade\\" + date + "\\" + dt.Day + ".txt") +
      "\r\n" + _client.Entity.Name + " gaved " + client.Entity.Name + " item:" + item.UID + " Plus:" + item.Plus + " Name: " + Database.ConquerItemInformation.BaseInformations[item.ID].Name + "");
                                
                                 #endregion*/
02/03/2014 11:35 bashondegek#2
If its a crappy Messi source..
Throw it in the trash, used it too... and its full of shitty bugs.
02/03/2014 11:51 akosicamar2#3
its not messi ;)
02/03/2014 12:10 abdoumatrix#4
search in ur source for it, and check if it used or not
02/03/2014 13:30 Yupmoh#5
There should be a requirement to be able to make threads tbh, like this guy showed no codes, not even telling which source he uses, a mod should remove these threads to clean things up a little but hey that's just my opinion.
02/03/2014 16:02 akosicamar2#6
Quote:
Originally Posted by Execution! View Post
There should be a requirement to be able to make threads tbh, like this guy showed no codes, not even telling which source he uses, a mod should remove these threads to clean things up a little but hey that's just my opinion.
Don't worry man ! -_- I will edit my post ! I will post the codes and FYI its a private source so no need to say tho!

..... Done editing my post ;)
02/03/2014 18:26 abdoumatrix#7
the middle one is the only one working

remove /* */
from the other codes
02/04/2014 00:34 akosicamar2#8
Quote:
Originally Posted by abdoumatrix View Post
the middle one is the only one working

remove /* */
from the other codes
Okay, I will try. :)
02/04/2014 00:48 Yupmoh#9
Quote:
Originally Posted by akosicamar2 View Post
Don't worry man ! -_- I will edit my post ! I will post the codes and FYI its a private source so no need to say tho!

..... Done editing my post ;)
Aint worried and sorry if I sounded harsh? But I just don't like feeling helpless.. You gave no info at all and you're like "help me", And yeah.. your codes are commented, Remove the comment /* */ and retry.
02/04/2014 15:58 turk55#10
Why would you want to save it as a text file if you can save it in the database ? :S
02/04/2014 17:09 Aceking#11
Quote:
Originally Posted by turk55 View Post
Why would you want to save it as a text file if you can save it in the database ? :S
Because writing a million if statements and storing everything in text files is the new way of doing things, didn't you hear? ;)
02/05/2014 02:49 akosicamar2#12
Thanks guys ! ;)

#Problem Solved,

Requesting to close the Thread :D