05/01/2009, 22:45
|
#1
|
elite*gold: 20
Join Date: Feb 2007
Posts: 660
Received Thanks: 79
|
need some help..
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);
|
|
|
|