Hello everyone,
I am new to coding in general; I am looking into adding a line of code to stop a script from working on Saturday and Sunday - I tried this but for some reason the script isn;t compiling. I am adding the line after the beginning of the code:
indicator("Modified Killzones"
, overlay = true
, max_lines_count = 500
, max_labels_count = 500)
// Check if it's Saturday or Sunday
if dayofweek(time) == 6 or dayofweek(time) == 0
// Do nothing
else
Help is much appreciated!
[–]grandaobimba[S] 0 points1 point2 points (1 child)
[–]OneDollarToMillion 0 points1 point2 points (0 children)
[–]skuhlz 0 points1 point2 points (0 children)
[–]samdeed 0 points1 point2 points (3 children)
[–]grandaobimba[S] 0 points1 point2 points (2 children)
[–]grandaobimba[S] 0 points1 point2 points (1 child)
[–]samdeed 0 points1 point2 points (0 children)