Loop & list problem

  • 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 community!

    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.

Kuzifes

Member
Apr 25, 2017
16
0
1
Hey guys, got a problem with lists.

I want to add expire system for a region market.
Code:
on rightclick on sign:
    line 1 of the clicked block is "[Region]":
        if line 4 is empty:
            set {regiontmp} to line 2
            clear {moneytemp}
            set {moneytemp} to line 3 parsed as integer
            if player's money is more than or equal to {moneytemp}:
                remove {moneytemp} from player's money
                set line 4 to "%player%"
                execute console command "rg addmember -w %player's world% %{regiontmp}% %player%"
                clear line 3
                set line 3 to "%now%"
                
                
# This line is the problem
                set {regionmarket::*} to now

            else:
                stop trigger
        else:
            stop trigger


every 5 hours:
    loop {regionmarket::*}:

       # Here it says "There's no loop matches 'Loop-index' is more than 2 real minutes ago"

        loop-index is more than real 2 minutes ago:
            ..

Using latest Skript version from SkriptLang
[doublepost=1564342541,1564255542][/doublepost]bump :/
 
Status
Not open for further replies.