Solved Why this code gives the player a log or a leave not just a log?

  • 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.
code_language.skript:
give oak log to player
Thanks it is now working, but i have a problem with my full code too.
Can you help me please?
code_language.skript:
on sneak toggle:
    if block under the player is log:
        if block 2 under the player is mossy cobblestone:
            if {fatorony} is not the player's name:
                set {torony.fa} to player's name
                broadcast "%player% elfoglalta a Fa tornyot"
            else:
                broadcast "%{fatorony}% bitorolja a Fa tornyot"
                while player is sneaking:
                    give oak log to player
                    wait 1 second
[doublepost=1532107206,1532107118][/doublepost]
Thanks it is now working, but i have a problem with my full code too.
Can you help me please?
code_language.skript:
on sneak toggle:
    if block under the player is log:
        if block 2 under the player is mossy cobblestone:
            if {fatorony} is not the player's name:
                set {torony.fa} to player's name
                broadcast "%player% elfoglalta a Fa tornyot"
            else:
                broadcast "%{fatorony}% bitorolja a Fa tornyot"
                while player is sneaking:
                    give oak log to player
                    wait 1 second
The problem is with the if and the else
 
Thanks it is now working, but i have a problem with my full code too.
Can you help me please?
code_language.skript:
on sneak toggle:
    if block under the player is log:
        if block 2 under the player is mossy cobblestone:
            if {fatorony} is not the player's name:
                set {torony.fa} to player's name
                broadcast "%player% elfoglalta a Fa tornyot"
            else:
                broadcast "%{fatorony}% bitorolja a Fa tornyot"
                while player is sneaking:
                    give oak log to player
                    wait 1 second
[doublepost=1532107206,1532107118][/doublepost]
The problem is with the if and the else
code_language.skript:
if {fatorony} is not the player:
 
Status
Not open for further replies.