Lua error.

Timer Error: [perp2.5\gamemode\sh_modules\system_time_shared.lua:63] attempt to concatenate field ‘CurrentTime’ (a nil value) E


MONTH_DAYS = {5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5};

if (GAMEMODE.CurrentDay > MONTH_DAYS[GAMEMODE.CurrentMonth]) then -- the error line is here ( line 63 ).
			GAMEMODE.CurrentDay = 1;
			GAMEMODE.CurrentMonth = GAMEMODE.CurrentMonth + 1;
			
			if (GAMEMODE.CurrentMonth > 12) then
				GAMEMODE.CurrentMonth = 1;
				GAMEMODE.CurrentYear = GAMEMODE.CurrentYear + 1;
				// Happy near years
			end
end


I have checked all those variables they all exist and have a value assigned.

Its not that line/file. Theres no CurrentTime there

Problem solved, thanks!

I didn’t register the CurrentTime after selecting it from the database.