permission: staff.member
trigger:
if {staff_online} is not set:
set {staff_online} to true
set {start_time} to now
send "The played time counter has started!"
else:
send "The counter is already running."
on quit:
if {staff_online} is set:
set {staff_online} to false
# Calculate the total time played by subtracting start_time from the current time and dividing by 1000
set {total_time} to (now - {start_time}) / 1000
if {total_time} > 0:
# Use the correct syntax for appending to a file and include a line break
append line "{player} played for {total_time} seconds" to file "staff_times.txt"
send "Your played time has been saved."
else:
send "Your played time was too short and was not saved."```
#I need help with some lines of my code
1 messages · Page 1 of 1 (latest)
uh
but this channel is for helping the people
Ok?
i thought
It is
so you are helping
and this channel is about help
bruh
if you're not going to help better don't answer
Reading this will help you
Me giving you the answer will not help you learn
If you want spoonfeeding then #job-board is the place to be
Learn about variables and it will fix your problems
you'r not using this channel
properly
If you want the code fixing then $10
I'm not interested in your course but thanks
It's free to read
you are lookinf for work?
im looking for help
to help with the 2 lines
becasue idk what's happening
but ok
Learn about variables
what is this channel for?
Learning
@tall dock lol
I have helped
I have given you a tutorial on the basics of the types of variables
Not my fault you aren't willing to learn
You are promoting your course to me and I saw that I am not the only one
I'm not interested in your page
💀
thanks
It's not a course
you can't compare a timespan to a number
yeah and he helped you
uh no
but well
if 3 people is going to write here and not help
i think i will open again the channel
so you're saying that this isnt helping you?
uuh yep
cant compare time span to num
ooh
i already told u that
Sounds about right
is it very difficult to say something like that?