[Help] I need a small help in a error i get

11/23/2008 14:09 martoon#1
Okay, i tryed to add some mobspawns and after i restart the server i get this error

Quote:
System.ArgumentOutOfRangeException: 'minValue' cannot be greater than maxValue.
Parameter name: minValue
at System.Random.Next(Int32 minValue, Int32 maxValue)
at COServer_Project.Mobs.SpawnAllMobs() in C:\Documents and Settings\Maroon\Desktop\MySource\Entities.cs:line 204
Wen i remove them the error are gone.

And this wat i added

Quote:
INSERT INTO `mobspawns` VALUES (413, 54, 20, 250, 250, 320, 310, 2021);
INSERT INTO `mobspawns` VALUES (414, 54, 20, 251, 251, 290, 350, 2021);
INSERT INTO `mobspawns` VALUES (415, 54, 20, 252, 252, 220, 350, 2021);
INSERT INTO `mobspawns` VALUES (416, 54, 20, 253, 253, 150, 280, 2021);
INSERT INTO `mobspawns` VALUES (417, 54, 20, 254, 254, 110, 200, 2021);
11/23/2008 14:51 turk55#2
nice work , and alex ure helping alot of pple keep going +thanks :D:D:D:D
11/23/2008 14:57 martoon#3
I didnt understand you can you explain it more?
11/23/2008 15:05 alexbigfoot#4
shitty - my bad i`ll explain later about that shitty :)


LOL , idk too, i dont understand very well the spawn things but i read the error, and because i had it too , i remembered, look here:

first-x , first-y, sec-x, sec-y

"first-x" cant be bigger than sec-x
same for "first-y" , it cant be bigger than sec-y

example:
INSERT INTO `mobspawns` VALUES (413, 54, 20, first-x, first-y, sec-x, sec-y, 2021);

about that shitty, i said a shit in my first post
11/23/2008 15:09 martoon#5
Okay! now i got it,
so this one are right?
Quote:
INSERT INTO `mobspawns` VALUES (413, 54, 20, 250, 250, 309, 310, 2021);
11/23/2008 15:10 alexbigfoot#6
try and tell me :D
11/23/2008 15:11 martoon#7
Hehehe okay i will try it
11/23/2008 15:13 martoon#8
Quote:
INSERT INTO `mobspawns` VALUES (413, 54, 20, 250, 250, 309, 310, 2021);
INSERT INTO `mobspawns` VALUES (414, 54, 20, 251, 251, 290, 350, 2021);
INSERT INTO `mobspawns` VALUES (415, 54, 20, 252, 252, 220, 350, 2021);
INSERT INTO `mobspawns` VALUES (416, 54, 20, 253, 253, 150, 280, 2021);
INSERT INTO `mobspawns` VALUES (417, 54, 20, 254, 254, 110, 200, 2021);
I tryed this one, and still i get the error =/
11/23/2008 15:17 alexbigfoot#9
INSERT INTO `mobspawns` VALUES (415, 54, 20, 252, 252, 260, 350, 2021);
INSERT INTO `mobspawns` VALUES (416, 54, 20, 253, 253, 254, 280, 2021);
INSERT INTO `mobspawns` VALUES (417, 54, 20, 254, 254, 255, 255, 2021);


try this one
11/23/2008 15:18 turk55#10
do you see 320 you should make that lower in like 290 and error will be gone
11/23/2008 15:20 martoon#11
still i get the error =/
i did what you said
Quote:
INSERT INTO `mobspawns` VALUES (415, 54, 20, 252, 252, 220, 350, 2021);
INSERT INTO `mobspawns` VALUES (416, 54, 20, 253, 253, 254, 280, 2021);
INSERT INTO `mobspawns` VALUES (417, 54, 20, 254, 254, 255, 255, 2021);
Alex can you add me on msn?
11/23/2008 15:35 alexbigfoot#12
tell me it
11/23/2008 15:40 martoon#13
Give me your email so i can add you i cant see invite

Alex?!
11/23/2008 16:57 tanelipe#14
martoon, stop triple and double postings please.
11/23/2008 17:03 © Haydz#15
Quote:
Originally Posted by tanelipe View Post
martoon, just stop posting please.
Fixed