Returns amount of seconds left for the next server save.
09:55 Server is saving game in 5 minutes.
Please come back later.
And what is sstime showing:
09:56:40 83000 --its from console
Am I missing something or it not work?
Returns amount of seconds left for the next server save.
09:55 Server is saving game in 5 minutes.
Please come back later.
And what is sstime showing:
09:56:40 83000 --its from console
Am I missing something or it not work?
Is your computer's clock correct?
Ye im sure, it worked few days ago, i didnt change anything. Now it shows that ss will be at 9:00 o'clock instead of 10:00 if im counting well.
Isn't it easier this way?
function sstiem()
if os.date("%X") >= "09:30" and os.date("%X") <= "10:10" then
return true
else
return false
end
end
function relogtiem()
if os.date("%X") >= "10:30" and os.date("%X") <= "11:00" then
return true
else
return false
end
end
Can you please run the following code? Post the printed values and please also inform your location (Country/City) and timezone.
print('os.date(\'*t\')')
print(os.date('*t'))
print('os.date(\'!*t\')')
print(os.date('!*t'))
print('os.date(\'!%X\')')
print(os.date('!%X'))
print('os.date(\'%X\')')
print(os.date('%X'))
print('utcoffset()')
print(utcoffset())
print('cetoffset()')
print(cetoffset())
print('utctime()')
print(utctime())
print('cettime()')
print(cettime())
print('sstime()')
print(sstime())
Last edited by Raphael; 02-24-2016 at 08:45 PM.
Poland,(UTC+01:00) Sarajewo, Skopie, Warsaw, Zagrzeb
@Raphael
Try with this version:
Last edited by Raphael; 02-10-2016 at 04:28 PM.
I replaced files and reload libraries and still same, there was a typo btw
Try again with this one: (please recopy the printing script, as I've changed a few things on it)