1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Skript' started by PantherBoy, Jul 20, 2018.

Tags:
Thread Status:
Not open for further replies.
  1. P

    PantherBoy Well-Known Member

    Joined:
    Jul 20, 2017
    Messages:
    72
    Likes Received:
    0
    give a log:0 to player
    How can I change it to work fine?
     
  2. Best Answer:
    Post #2 by PatoFrango, Jul 20, 2018
  3. PatoFrango

    PatoFrango Well-Known Member

    Joined:
    Jul 12, 2017
    Messages:
    140
    Likes Received:
    10
    Code (Skript):
    1. give oak log to player
     
    • Creative Creative x 1
  4. P

    PantherBoy Well-Known Member

    Joined:
    Jul 20, 2017
    Messages:
    72
    Likes Received:
    0
    Thanks it is now working, but i have a problem with my full code too.
    Can you help me please?
    Code (Skript):
    1.  
    2. on sneak toggle:
    3.     if block under the player is log:
    4.         if block 2 under the player is mossy cobblestone:
    5.             if {fatorony} is not the player's name:
    6.                 set {torony.fa} to player's name
    7.                 broadcast "%player% elfoglalta a Fa tornyot"
    8.             else:
    9.                 broadcast "%{fatorony}% bitorolja a Fa tornyot"
    10.                 while player is sneaking:
    11.                     give oak log to player
    12.                     wait 1 second
    13.  
    --- Double Post Merged, Jul 20, 2018, Original Post Date: Jul 20, 2018 ---
    The problem is with the if and the else
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    what exactly is the problem?
     
  6. PatoFrango

    PatoFrango Well-Known Member

    Joined:
    Jul 12, 2017
    Messages:
    140
    Likes Received:
    10
    Code (Skript):
    1. if {fatorony} is not the player:
    2.  
     
  7. P

    PantherBoy Well-Known Member

    Joined:
    Jul 20, 2017
    Messages:
    72
    Likes Received:
    0
    still don't works :emoji_frowning:
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,049
    Likes Received:
    145
    again, what exactly does or does not work?
     
  9. P

    PantherBoy Well-Known Member

    Joined:
    Jul 20, 2017
    Messages:
    72
    Likes Received:
    0
    I solved it, thx
     
  10. PatoFrango

    PatoFrango Well-Known Member

    Joined:
    Jul 12, 2017
    Messages:
    140
    Likes Received:
    10
    He said the problem was with the if and the else.
     
Thread Status:
Not open for further replies.
Loading...