[Request] Help...

07/17/2009 09:58 f0am#1
I just recently spawned some new npcs, alot of them so i dont know which one it is talking about, and im trying to figure out which this bug is from so here it is


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!
07/17/2009 18:02 coreymills#2
#Bump
07/17/2009 19:33 f0am#3
#request close, did a few flag and direction too high :D found the error and fixed!
07/17/2009 21:20 tanelipe#4
#Closed