Register for your free account! | Forgot your password?

You last visited: Today at 18:06

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[HELP]gmlogs

Discussion on [HELP]gmlogs within the CO2 Private Server forum part of the Conquer Online 2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2011
Posts: 84
Received Thanks: 1
[HELP]gmlogs

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*/
akosicamar2 is offline  
Old 02/03/2014, 11:35   #2
 
elite*gold: 0
Join Date: Mar 2007
Posts: 155
Received Thanks: 29
If its a crappy Messi source..
Throw it in the trash, used it too... and its full of ****** bugs.
bashondegek is offline  
Thanks
1 User
Old 02/03/2014, 11:51   #3
 
elite*gold: 0
Join Date: Nov 2011
Posts: 84
Received Thanks: 1
its not messi
akosicamar2 is offline  
Old 02/03/2014, 12:10   #4
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
search in ur source for it, and check if it used or not
abdoumatrix is offline  
Old 02/03/2014, 13:30   #5
 
Yupmoh's Avatar
 
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 284
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.
Yupmoh is offline  
Thanks
2 Users
Old 02/03/2014, 16:02   #6
 
elite*gold: 0
Join Date: Nov 2011
Posts: 84
Received Thanks: 1
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
akosicamar2 is offline  
Old 02/03/2014, 18:26   #7
 
abdoumatrix's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 874
Received Thanks: 239
the middle one is the only one working

remove /* */
from the other codes
abdoumatrix is offline  
Old 02/04/2014, 00:34   #8
 
elite*gold: 0
Join Date: Nov 2011
Posts: 84
Received Thanks: 1
Quote:
Originally Posted by abdoumatrix View Post
the middle one is the only one working

remove /* */
from the other codes
Okay, I will try.
akosicamar2 is offline  
Old 02/04/2014, 00:48   #9
 
Yupmoh's Avatar
 
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 284
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.
Yupmoh is offline  
Old 02/04/2014, 15:58   #10
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
Why would you want to save it as a text file if you can save it in the database ? :S
turk55 is offline  
Old 02/04/2014, 17:09   #11
 
elite*gold: 0
Join Date: Feb 2006
Posts: 726
Received Thanks: 271
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?
Aceking is offline  
Thanks
2 Users
Old 02/05/2014, 02:49   #12
 
elite*gold: 0
Join Date: Nov 2011
Posts: 84
Received Thanks: 1
Thanks guys !

#Problem Solved,

Requesting to close the Thread
akosicamar2 is offline  
Closed Thread




All times are GMT +2. The time now is 18:06.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.