|
You last visited: Today at 08:37
Advertisement
[Help](5165)
Discussion on [Help](5165) within the CO2 Private Server forum part of the Conquer Online 2 category.
02/10/2011, 17:40
|
#1
|
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
|
[Help](5165)
i know i'm annoying
Quote:
MySql.Data.Types.MySqlConversionException: Unable to convert MySQL date/time value to System.DateTime
at MySql.Data.Types.MySqlDateTime.GetDateTime()
at MySql.Data.MySqlClient.MySqlDataReader.GetValue(In t32 i)
at MySql.Data.MySqlClient.MySqlDataReader.GetValues(O bject[] values)
at System.Data.ProviderBase.DataReaderContainer.Commo nLanguageSubsetDataReader.GetValues(Object[] values)
at System.Data.ProviderBase.SchemaMapping.LoadDataRow ()
at System.Data.Common.DataAdapter.FillLoadDataRow(Sch emaMapping mapping)
at System.Data.Common.DataAdapter.FillFromReader(Data Set dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)
at System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords)
at System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at ConquerSx.Database.MySqlReader.TryFill(MySqlComman d command) in C:\Users\Mills\Documents\Corey\Sources\source\sour ce\Database\MySqlReader.cs:line 46
|
Line: 46
Code:
DataAdapter.Fill(_dataset, Table);
|
|
|
02/10/2011, 17:49
|
#2
|
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
|
I can only recommend you another source.
|
|
|
02/10/2011, 18:02
|
#3
|
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
|
lol the only mysql source i can get to work is the conquersx cause the download for impulses source was removed(download Link)
|
|
|
02/10/2011, 18:56
|
#4
|
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
|
Yikes. I hate Conquer SX.
Well.... somewhere your source is trying to read a DateTime by converting something and it's not working. Use breakpoints as your server loads / when you log in to figure it out.
|
|
|
02/10/2011, 18:58
|
#5
|
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 370
|
Omfg..... There is like 20download links on the first page of impulse source.
What is line 46?
|
|
|
02/10/2011, 19:06
|
#6
|
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
|
Quote:
Originally Posted by Syst3m_W1z4rd
Omfg..... There is like 20download links on the first page of impulse source.
What is line 46?
|
If it's like the errors I used to get when I didn't name a table correctly for reading, it's just the reader messing up saying it can't do it. He needs to figure out where that came from with breakpoints.
|
|
|
02/10/2011, 23:44
|
#7
|
elite*gold: 0
Join Date: Apr 2006
Posts: 231
Received Thanks: 94
|
haha, this is actually my source im using. And im not sure exactly what the error is, but it doesnt affect anything. What caused this error was when i put in the custom temporary ban system, and it fetches their datetime from mysql and reads it as a string from mysql, then in C# i convert that string into a datetime using Convert.ToDateTime(string); It reads that date time just fine, i have dumped it out and read the values to check, but I still get that error. Not a big deal but kinda annoying.
|
|
|
02/11/2011, 00:06
|
#8
|
elite*gold: 28
Join Date: Jun 2010
Posts: 2,225
Received Thanks: 868
|
Yes I know your error I experienced it a while back. The string your saving needs reversing. My Jail timer class which will save in the correct format
Code:
public static void PutInJail(Client.GameState client, string _For, int _Minutes, int _Hours, int _Days)
{
//YY-MM-DD HH:MM:SS
//DateTime _DT = DateTime.Now;
[B] string Year = Convert.ToString(DateTime.Now.Year);
string Month = Convert.ToString(DateTime.Now.Month);
string Day = Convert.ToString(DateTime.Now.Day);
string Hour = Convert.ToString(DateTime.Now.Hour);
string Minute = Convert.ToString(DateTime.Now.Minute);
string Second = Convert.ToString(DateTime.Now.Second);[/B]
uint _UID = client.Entity.UID;
MySqlCommand cmd = new MySqlCommand(MySqlCommandType.INSERT)
.Select("jail");
cmd.Insert("EntityUID", _UID)
[B] .Insert("ArrestedAt", Year + "-" + Month + "-" + Day + " " + Hour + ":" + Minute + ":" + Second)[/B]
.Insert("Minutes", _Minutes)
.Insert("Hours", _Hours)
.Insert("Days", _Days)
.Insert("ArrestedFor", _For)
.Execute();
}
Lines in bold are what you need.
|
|
|
02/11/2011, 00:38
|
#9
|
elite*gold: 0
Join Date: Apr 2006
Posts: 231
Received Thanks: 94
|
#problem resolved. Corey msg me on msn. For those curious, oddly enough it was with the mysql reader reading a table with timestamps without even assigning the timestamp to anything or reading it.
|
|
|
 |
Similar Threads
|
Hi I need 5165 source act like Real Co 5165
09/15/2010 - CO2 Private Server - 4 Replies
I need a A source 5165 that all skills is available specially rb char like nin-nin-nin counterKill and nin-war-nin reflect and more, and also the attack rates should be fair not like +8 set can 1 hit +12 set, and also maybe the client, I need to study to make it in 5200+ source. I love to trade it with my cofarmer account VIP i have use it for 5 days only. PM or contact me in skype :marlyandedsel
|
[5165]Help With npc
08/06/2010 - CO2 Private Server - 4 Replies
Hello good day. Good I need to know as being able to know go of a npc " pack chief " for that it gives cps and I pray to all and then the servant would be very easy I need help.
thanks you elitepvpers
And other problem
HOW I CAN EDIT THE STATS OF MY PM?
|
5165 can not use LT
03/13/2010 - CO2 Private Server - 6 Replies
has any1 not been able2 cast luckytime?
http://img687.imageshack.us/img687/8488/ltprob.jp g
if so how could i fix this problem?
|
[Help]5165
01/04/2010 - CO2 Private Server - 0 Replies
how do i fix the invalid coords could someone help me please
|
All times are GMT +1. The time now is 08:38.
|
|