I have a simple script, but I can't find out how to stop this loop. Can anyone help me?
The error message I get is:
can't stop any loops as there are no loops present (arenas.sk, line 15: exit 1 loop')
Code:
on join:
if the player's world is "pvp":
loop 1000 times:
wait 100 seconds
make console execute "eco give %player% 100"
make console execute "give %player% stick 1"
wait 100 seconds
make console execute "eco give %player% 100"
make console execute "give %player% iron_ingot 1"
wait 100 seconds
make console execute "give %player% iron_ingot 1"
make console execute "give %player% lapiz_lazuli 1"
message "&8[&aNotice&8] &cVisit the shop keeper!"
if player's world is not "pvp":
exit 1 loop
The error message I get is:
can't stop any loops as there are no loops present (arenas.sk, line 15: exit 1 loop')