Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 03:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Im really idealess about this ...

Discussion on Im really idealess about this ... within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
[DEV]Sukey's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 166
Received Thanks: 132
Question Im really idealess about this ...

Hello about the Siege Battle ... I know the FIX Is heading around ... And used it with my Script ... so everything was fine till i cleaned up my database ...
Since then i cannot use the Script anymore and get this **** MSG -.-

Code:
[COLOR="Red"]Server: Msg 242, Level 16, State 3, Procedure FN_SetSiegeStartTime_U, Line 34[/COLOR]
The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
If anyone could help me out or give me an idea how to fix it, would i be gladful ... While waiting for the Answer im going to solve the problem <.< or better said Trying ...
[DEV]Sukey is offline  
Old 02/01/2010, 13:43   #2
 
elite*gold: 0
Join Date: Dec 2009
Posts: 123
Received Thanks: 29
in your FN_SetSiegeStartTime_U, re type the value. maybe it got messed up.
jpxtreme is offline  
Thanks
1 User
Old 02/01/2010, 13:50   #3
 
[DEV]Sukey's Avatar
 
elite*gold: 0
Join Date: Nov 2007
Posts: 166
Received Thanks: 132
Oke im gonna look over this, Thanks *push button*

edit: Didnt find anything wrong for me there >.>

Thats the Code of it ...

Quote:
CREATE FUNCTION dbo.FN_GetSiegeStartBinTime
(
@i_GetDate datetime
) RETURNS varbinary(4)
AS
BEGIN
DECLARE @v_siege_start_time varbinary(4)
DECLARE @v_siege_start_date varchar(14)
--// 다음공성전 시작시간 Default Setting : 일요일 9시
SELECT @v_siege_start_date = CONVERT(VARCHAR(10), DATEADD(d, 15-DATEPART(dw, @i_GetDate), @i_GetDate), 112) + '210000'
SELECT @v_siege_start_time = SUBSTRING(@v_siege_start_date,4,1) * 100000000
+ SUBSTRING(@v_siege_start_date,5,2) * 1000000
+ SUBSTRING(@v_siege_start_date,7,2) * 10000
+ SUBSTRING(@v_siege_start_date,9,2) * 100
+ SUBSTRING(@v_siege_start_date,11,2)

IF DATALENGTH(@v_siege_start_time) <> 4
SELECT @v_siege_start_time = 0x00000000

RETURN @v_siege_start_time
END
[DEV]Sukey is offline  
Reply




All times are GMT +1. The time now is 03:31.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.