need some help..

05/01/2009 22:45 JoieJones90#1
Getting this error when im trying to make a new spawn of a monster named Long dog.. what should i change?
Quote:
System.OverflowException: Value was either too large or too small for an Int16.
at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info)
at COServer_Project.Mobs.SpawnAllMobs() in C:\Users\Joie\Documents\nice\Lotf Source\COServerProject\Entities.cs:line 218
this is on line 218..
Quote:
SingleMob Mob = new SingleMob(spawn_x, spawn_y, Convert.ToInt16(ThisSpawn[7]), uint.Parse(ThisMob[3]), uint.Parse(ThisMob[3]), short.Parse(ThisMob[6]), short.Parse(ThisMob[7]), UID, ThisMob[2], int.Parse(ThisMob[1]), short.Parse(ThisMob[4]), (byte)General.Rand.Next(8), byte.Parse(ThisMob[5]), 0, true);
05/01/2009 22:54 martoon#2
Umm, try to make x numbers lower then the y or the opposite.
05/01/2009 23:01 JoieJones90#3
Quote:
Originally Posted by martoon View Post
Umm, try to make x numbers lower then the y or the opposite.
you mean the spawn_x and spawn_y?

edit: didnt work if u mean that..