PDA

View Full Version : [HELP] Sociality & Recommendations Getting Lost Way too Fast


Osito2Dancer
05.05.2007, 20:46
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 :o).

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

Thanks in advance

Oso

FidoW
05.05.2007, 20:55
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
05.05.2007, 20:59
/********************************************
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

Osito2Dancer
06.05.2007, 01:01
Thanks FidoW, ill be testing it.

Oso