#I need help with some lines of my code

1 messages · Page 1 of 1 (latest)

topaz forge
#
    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."```
#

the lines 15 and 18 are giving me problems

worldly heath
#

Send code in code block send image of error

#

Look at docs

#

Learn about variables

topaz forge
#

uh

worldly heath
topaz forge
#

but this channel is for helping the people

worldly heath
#

Ok?

topaz forge
#

i thought

worldly heath
#

It is

topaz forge
#

and why you are sending me to learn about variables

#

?

worldly heath
#

Because I'm not gonna spoon-feed you

#

Read my tutorial and learn instead

topaz forge
#

so you are helping

#

and this channel is about help

#

bruh

#

if you're not going to help better don't answer

worldly heath
#

Me giving you the answer will not help you learn

#

If you want spoonfeeding then #job-board is the place to be

topaz forge
#

i only ask for help with 2 lines

#

not for learn about variables from you

worldly heath
#

Learn about variables and it will fix your problems

topaz forge
#

you'r not using this channel
properly

worldly heath
#

If you want the code fixing then $10

topaz forge
#

I'm not interested in your course but thanks

topaz forge
#

yea

worldly heath
topaz forge
#

you are lookinf for work?

worldly heath
#

You are looking for a worker

#

To fix your skript for you

topaz forge
#

im looking for help

#

to help with the 2 lines

#

becasue idk what's happening

#

but ok

worldly heath
#

Learn about variables

topaz forge
#

what is this channel for?

worldly heath
#

Learning

topaz forge
#

xd

worldly heath
#

@tall dock lol

topaz forge
#

of you are not going to help better dont answer kid

#

thanks

worldly heath
#

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

topaz forge
#

You are promoting your course to me and I saw that I am not the only one

#

I'm not interested in your page

tall dock
topaz forge
#

thanks

tall dock
worldly heath
#

It's free to read

#

Its a tutorial

brittle sierra
#

apparently help = spoon feeding

#

we've been wrong the entire time 😔

topaz forge
#

bruh

#

i only asked for help with 2 lines

#

xd

brittle sierra
#

yeah and he helped you

topaz forge
#

uh no

#

but well

#

if 3 people is going to write here and not help

#

i think i will open again the channel

brittle sierra
topaz forge
#

uuh yep

brittle sierra
#

we aren't gonna spoon feed you

#

idk what ur definition of "help" is

tall dock
topaz forge
#

ooh

tall dock
#

i already told u that

topaz forge
#

srry

#

i didnt read it

#

thanks

worldly heath
topaz forge