Post Pacific  

Go Back   Post Pacific > Lineage 2 Russian > Помощь
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 31.03.2007, 05:54   #1
fearless
Архивный участник
 
Join Date: Mar 2007
Posts: 20
Default Проблема с Манором

Извиняюсь, за подъем этой темы, но нормального ответа я через поиск не нашел.
На сервере не работает манор. т.е. Выставляются семина на продажу, а на следующий день все пропадает. Была изменена процедура lin_SetLastTaxUpdate на следующее:
Code:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO

/********************************************    
lin_SetLastTaxUpdate  
     
INPUT     
@income  datetime,
@tax datetime
OUTPUT    
made by    
 carrot    
date    
 2004-02-29  
********************************************/    
ALTER PROCEDURE dbo.lin_SetLastTaxUpdate
(
@income varchar(100),
@tax varchar(100),
@manor varchar(100)
)
AS

declare @income_ datetime
declare @tax_ datetime
declare @manor_ datetime

set @income =left(@income,5) + cast((cast(replace(substring(@income,6,2),'-','') as int) + 1) as varchar) + substring(@income, charindex ('-', @income, 6),100)
set @tax =left(@tax,5) + cast((cast(replace(substring(@tax,6,2),'-','') as int) + 1) as varchar) + substring(@tax, charindex ('-', @tax, 6),100)
set @manor =left(@manor,5) + cast((cast(replace(substring(@manor,6,2),'-','') as int) + 1) as varchar) + substring(@tax, charindex ('-', @tax, 6),100)

set @income_ = convert(datetime, @income)
set @tax_ = convert(datetime, @tax)
set @manor_ = convert(datetime, @manor)


SET NOCOUNT ON
IF EXISTS(SELECT * FROM castle_tax)
BEGIN
UPDATE castle_tax SET income_update = @income_, tax_change = @tax_, manor_reset = @manor_
END
ELSE
BEGIN
INSERT INTO castle_tax VALUES
( @income_, @tax_, @manor_)

END
Если кто знает как можно доделать манор, прошу помочь.
Заранее спасибо.
fearless is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:09.