[Problem]blessing

12/29/2009 01:53 coreymills#1
Quote:
System.ArgumentOutOfRangeException: Value to ass was out of range.
Parameter name: value
at System.DateTime.Add<Double value, int32 scale>
at System.DateTime.AddDays<double, value>
at NewestCOServer.Game.Character.step<> in F:\PSERVER\ultimo update rikardo\rikardo updated\Game\Character.cs:line 6666
Code:
if (BlessingLasts > 0 && DateTime.Now > BlessingStarted.AddDays(BlessingLasts))
i dont want the answer i just want help to fix it.
12/29/2009 20:20 ~*NewDuuDe*~#2
Quote:
Value to ass was out of range.
Now this is just funny.
12/30/2009 02:24 .Guru#3
Quote:
Originally Posted by coreymills View Post
Code:
if (BlessingLasts > 0 && DateTime.Now > BlessingStarted.AddDays(BlessingLasts))
i dont want the answer i just want help to fix it.
is blessing a uint or ushort?
12/30/2009 07:26 coreymills#4
neither its a int
12/31/2009 04:22 Korvacs#5
Quote:
Originally Posted by coreymills View Post
neither its a int
It has to be a double.
12/31/2009 04:59 coreymills#6
ok thanks korvacs