Why do I get the error "There are multiple loops that match value etc..." I tried putting loop-value-1 but it doesn't seem to work.
:
Code:
every second:
loop all offline players:
set {_pdurs::*} to objects in column "duration" from result of query "SELECT * FROM punishmentduration WHERE `name` ='%loop-offlineplayer%'"
loop {_pdurs::*}:
set {_pdurs} to loop-value
if {_pdurs} is not set:
stop
else if {_pdurs} = 0:
make console execute command "/pardon %loop-offlineplayer% Ban Expired"
else if {_pdurs} = -1:
stop
else if {_pdurs} > 0:
remove 1 from {_pdurs}
update "UPDATE `punishmentduration` SET `duration` = '%{_pdurs}%' WHERE `punishmentduration`.`name` ='%loop-offlineplayer%'"