Thread: olympiad points
View Single Post
Old 24.04.2007, 13:06   #5
godfather
Архивный участник
 
Join Date: Oct 2005
Posts: 35
Default

Quote:
Originally Posted by RetaL View Post
Your olympiad table must have bonus times in seconds.
The problem also might be in lin_AddAllOlympiadBonusPoint procedure.
lin_addallolumpiadbonuspoint:

Quote:
CREATE PROCEDURE dbo.lin_AddAllOlympiadBonusPoint
(
@season INT,
@step INT,
@bonus_point INT
)
AS
SET NOCOUNT ON

UPDATE user_nobless
SET olympiad_point = olympiad_point + @bonus_point

UPDATE olympiad
SET step = @step
WHERE season = @season
GO
table olympiad columns:
season
step
season_start_time
start_sec
bonus1_sec
bonus2_sec
bonus3_sec
bonus4_sec
nominate_sec
godfather is offline