Can you tell me what I'm doing wrong? I'm getting an error Can't understand this condition/effect: set {day} to UnixTimeStamp
- And I get an error everywhere with this UnixTimeStamp
here is the code
set {day} to UnixTimeStamp
set {week} to UnixTimeStamp
set {month} to UnixTimeStamp
function swk_timers(day: number, week: number, month: number):
if {day} >= 86400:
# код
execute console command "/say day"
# сброс
set {day} to UnixTimeStamp
if {week} >= 604800:
# код
execute console command "/say week"
# сброс
set {week} to UnixTimeStamp
if {month} >= 2592000:
# код
execute console command "/say month"
# сброс
set {month} to UnixTimeStamp
every hour:
swk_timers({day}, {week}, {month}) ```