What is the problem? Please help!

  • 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.

JackieX99

Member
Aug 13, 2018
1
0
0
20
The error: There's no block in a periodical event (foglalos.sk, line 37: if line 2 of block is "Jobb katt ideide":')

The skript:
command /foglaló [<text>]:
permission: foglalo.admin
permission message: &cEhhez nincs jogod! &4(foglalo.admin)
trigger:
if arg-1 is not set:
message "&cHasználat:"
message "&a/foglaló setup &7- Foglaló minigame beállítása"
message "&a/foglaló verzió &7- A minigame skript jelenlegi verziója"
message "&a/foglaló author &7- &A skript fejlesztői"
if arg-1 is set:
if arg-1 is "setup":
message "&6[&e&lFoglaló&6] &7» &eDominik meg kéne ezt írni"
else:
if arg-1 is "verzió":
message "&6[&e&lFoglaló&6] &7» &eA skript jelenlegi verziója, ami a szerveredben van: &60.1"
else:
if arg-1 is "author":
message "&6[&e&lFoglaló&6] &7» &eA skript fejlesztői: &6dominikd & JackieX99"
else:
message "&aHelytelen használat! Használd a &c/foglaló &aparancsot, hogy kilistázd a helyes parancsokat!"
on sign change:
if line 1 of block is "[foglaloset]":
set line 1 of block to "&l[Foglaló]"
set line 2 of block to "Jobb katt ide"
set line 3 of block to "&lStátusz: -"
set line 4 of block to "&lHely: 0/0"

on right click on sign:
if line 1 of block is "&l[Foglaló]":
add 1 to {jatekosok.szam}

command /quit:
Trigger:
remove 1 from {jatekosok.szam}

every 1 seconds:
if line 2 of block is "Jobb katt ide":
Trigger:
set line 4 of block to "&lHely: {jatekosok.szam}/16"

command /kula:
trigger:
message "{jatekosok.szam}"
 
Okey, so, I have some peace of code, that will help you, probably. But the player must be within a radius of 10 blocks from the plate.



code_language.skript:
every 1 second:
    loop all players:
        loop blocks in radius 10 around the loop-player:
            if line 2 of loop-block is "Jobb katt ide":
                set line 4 of loop-block to "&lHely: {jatekosok.szam}/16"
 
Status
Not open for further replies.