Code:
System.OverflowException: Value was either too large or too small for an unsigned byte. at System.Convert.ToByte<UInt32 value> at COServer_Project.NPCs.SpawnAllNPCs<> Entities.cs:line 18
Here is line 18
Code:
SingleNPC npc = new SingleNPC(Convert.ToUInt32(NPC[0]), Convert.ToUInt32(NPC[1]), Convert.ToByte(NPC[2]), Convert.ToByte(NPC[3]), Convert.ToInt16(NPC[4]), Convert.ToInt16(NPC[5]), Convert.ToInt16(NPC[6]), Convert.ToByte(NPC[7]));
If you can help me it will be greatly appreciated!