Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 05.05.2007, 20:46   #1
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default [HELP] Sociality & Recommendations Getting Lost Way too Fast

Hello to all:

I have a problem with sociality and recommendations (as it says in the topic). Everytime a PJ reloads, it loses a lot of recommendations (more than 2 a day). Even so, whenever the server reloads, people lose recommendations (i have players with 255 and when they relog, they get 72 ).

So, i wanted to know if something like this happened to you and if someone fixed it.

Thanks in advance

Oso
Osito2Dancer is offline  
Old 05.05.2007, 20:55   #2
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

The problem is in the Store Proc that store recomends... is a strange error that i think only happen in SPANISH windows operative systems due to date format (dd-mm-yyyy) (mm-dd-yyyy), your server are going to store the recs only the first 12 days of each month, im not sure if happen with english Windows too... because... i have the store proc fixed since the beggining when i was using a spanish windows.

Not matter if you change Windows time format or SQL time format... continue giving the same error for some reason i cant understand, only way... transforming the date in the input of the store proc.


lin_ResetSociality
FidoW is offline  
Old 05.05.2007, 20:59   #3
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Code:
/********************************************        
lin_ResetSociality
 set sociality
INPUT        
 @char_id
 @sociality
 @sulffrage
 @last_changed
OUTPUT        
return        
       
made by        
 carrot        
date        
 2004-07-4
change 

- added datetime conversion by FidoW -
********************************************/        
CREATE PROCEDURE [DBO].[lin_ResetSociality]
(        
 @char_id INT,
 @sociality INT,
 @sulffrage INT,
 @last_changed nvarchar(20)
)        
AS        
SET NOCOUNT ON   
 
SET @last_changed = CONVERT( datetime, @last_changed, 101 )

IF EXISTS(SELECT  * FROM user_sociality WHERE char_id = @char_id)
BEGIN
	UPDATE user_sociality 
	SET sociality = @sociality , used_sulffrage = @sulffrage , last_changed = @last_changed
	WHERE char_id = @char_id
END
ELSE
BEGIN
	INSERT INTO user_sociality (char_id, sociality , used_sulffrage , last_changed ) VALUES (@char_id, @sociality , @sulffrage , @last_changed )
END
GO
        
GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS OFF 
GO
FidoW is offline  
Old 06.05.2007, 01:01   #4
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

Thanks FidoW, ill be testing it.

Oso
Osito2Dancer 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 15:02.