1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I do not have this system

Discussion in 'Skript' started by tomiauns, Mar 8, 2017.

Thread Status:
Not open for further replies.
  1. tomiauns

    tomiauns Member

    Joined:
    Feb 2, 2017
    Messages:
    1
    Likes Received:
    0
    Hello everyone, I wanted to ask if they knew why this did not work or have another way to do this. I'm sorry if English is bad but I'm from Argentina and I'm using the translator :emoji_wink:
    I want to make it set if {_timer} has more minutes than {CCK.% Loop-value% .time.reward} but it does not detect this variable as a number. Thank you


    Code (Skript):
    1. on join:
    2.     loop {CCK.Codes::*}:
    3.         if {CCK.vips.%loop-value%.tiempo::%player%} is set:
    4.             set {_timer} to difference between {CCK.%loop-value%.vip.timer::%player%} and now
    5.             if {_timer} is more than %{CCK.%loop-value%.tiempo.reward}% minute: #This does not go
    6.                 execute console command "/nick tomiauns terminado"
    7.                 exit loop
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Remove the %'s around {CCK.%loop-value%.tiempo.reward}, so it says this

    Code (Skript):
    1. if {_timer} is more than {CCK.%loop-value%.tiempo.reward}:
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.
Loading...