Invalid cast error dalprovider.cs
c# game server framework
Status: Beta
Brought to you by:
gambitricky
Invalid cast in Dalprovider.cs. I believe this is because of the provided SQL MYSQL script has Character id as uint. I changed dalprovider.cs to implicitly cast the the object to an (uint32) and then int. I believe updating the table or script entry would fix this aswell.
if (p != null)
{
//charID = (int)p;
charID = (int)(UInt32)p;
}
Keeping the MSSQL & MySQL tables in sync would fix that but casting to uint would break MS SQL users.