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 out 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 Can someone who knows and wants to help me solve the errors?

Discussion in 'Skript' started by christianmv84, Jan 2, 2018.

Thread Status:
Not open for further replies.
  1. christianmv84

    christianmv84 Active Member

    Joined:
    Jul 20, 2017
    Messages:
    50
    Likes Received:
    0
    Can someone who knows and wants to help me solve the errors?

    I think I do not explain what I want to do, I mean what you did to me is fine, the concept but what I want, is that by killing that person who kills him he sucks 1 kill and who dies that he sums a death

    Code (Skript):
    1. on damage:
    2.     attacker is a player
    3.     victim is a player
    4.     set {Hitted::%victim%} to attacker
    5.     set {Hitted::%attacker%} to victim
    6.     wait 10 seconds
    7.     delete {Hitted::%victim%}
    8.     delete {Hitted::%attacker%}
    9.  
    10. on death:
    11.     if damage was caused by void:
    12.         victim is a player
    13.         if {Hitted::%victim%} is set:
    14.             set death message to "%victim% escape into void with a punch of %{Hitted::%victim%}"
    15.             add 1 to %{deaths.%victim%}%
    16.         else:
    17.             set death message to "&a%victim% &7se ha tirado al &cvacio"
    Code (Skript):
    1.  [Server thread/ERROR]: '::%victim%}"' is not a valid item data (SkyFFA.sk, line 484: set death message to "%victim% escape into void with a punch of %{Hitted::%victim%}"')
    2.  
    3. [Server thread/ERROR]: Can't understand this condition/effect: add 1 to %{deaths.%victim%}% (SkyFFA.sk, line 485: add 1 to %{deaths.%victim%}%')
     
    #1 christianmv84, Jan 2, 2018
    Last edited: Jan 2, 2018
  2. White

    White Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    445
    Likes Received:
    25
    Read through the 1st error. You are missing a % at the end of the variable.

    2nd error, remove % % surrounding the brackets. Those are only used in strings and inside variables.
     
  3. ChisleLP

    ChisleLP Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    789
    Likes Received:
    59
    For next time, you don't have to PN everyone People (Maybe you did only me), And 2. You don't have to create 2. Therad, just Bump your Theard if the post older than 1 days. and Why did you explain here better than other theard? Oh gad, This is the reason why you didn't get a lot helped, cuz you didn't tell a lot (Showing Code)...
     
  4. christianmv84

    christianmv84 Active Member

    Joined:
    Jul 20, 2017
    Messages:
    50
    Likes Received:
    0
    Ty so much and u know How to add attacker is a player in this context

    Code (Skript):
    1. on death:
    2.     if damage was caused by void:
    3.         victim is a player
    4.         if {Hitted::%victim%} is set:
    5.             set death message to "&a%victim% &7fue tirado al vacio por &c%{Hitted::%victim%}%"
    6.             add 1 to {deaths.%victim%}
    7.         else:
    8.             set death message to "&a%victim% &7se ha tirado al &cvacio"
    --- Double Post Merged, Jan 2, 2018, Original Post Date: Jan 2, 2018 ---
    Thanks, I already solve it, you forgot to put some things in the code
     
  5. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    1,016
    Likes Received:
    62
    Create a new thread for new questions and solve this one out^-^ makes it easier for people to use these posts as references in the future.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...