Math if, else...

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

GoodmanSIG

Member
Sep 25, 2018
11
0
0
36
code_language.skript:
        set {_kdy_konec} to skutil yaml value "TempBan.%player%.Kdy_konec" from file "plugins\BanSIG\bansig.yml"
        if {_kdy_konec} > now:
            message "Trest jeste neskoncil %{_kdy_konec}%  -  %now%"
        else:
            message "Skoncil %{_kdy_konec}%  -  %now%"
        stop


it reads the data from the file, but when comparing the values, it always evaluates FALSE.
 
Last edited:
What is the yml value?
 
code_language.skript:
TempBan:
  GoodmanSIG:
    Ban: 'true'
    Duvod: Minutka konzole
    Kdo_zabanoval: GoodmanSIG
    Kdo_odbanoval:
    Kdy_zacatek: 15.12.18 22:15
    Kdy_konec: 15.12.18 22:16
 
code_language.skript:
TempBan:
  GoodmanSIG:
    Ban: 'true'
    Duvod: Minutka konzole
    Kdo_zabanoval: GoodmanSIG
    Kdo_odbanoval:
    Kdy_zacatek: 15.12.18 22:15
    Kdy_konec: 15.12.18 22:16
show your error.
in console
[doublepost=1544916289,1544916210][/doublepost]
show your error.
in console
try with.
code_language.skript:
set {_kdy} to {_kdy_konec} parsed as data
set {_time} to "%now%"
set {_data} to {_time} parsed as data
if {_kdy} > {_data}:
i don't test this xd
 
Java:
[12:41:57 ERROR]: Can't understand this expression: '{_time} parsed as data' (te
st.sk, line 128: set {_data} to {_time} parsed as data')
 
Status
Not open for further replies.