I need help with JSON

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

SpeedBlock

Member
Jan 26, 2017
22
1
0
22
Hello, everyone. I need help completing a JSON text.I'm new to scripting and I'd like some help on this.(Sorry for my English)

Code:
  • code_language.skript:
    json("%player%","         &7&oEficiencia||cmd:/eff||ttp:&3» &b&l{@EffUP} Puntos de mejora%newline%&fAumenta tu%newline%&f&lEfiencia&fen tu pico||          &7&oFortuna||cmd:/for||ttp:&3» &b&l{@ForUP} Puntos de mejora%newline%&fIAumenta tu%newline%&f&oFortuna &fen tu pico||          &7&oIrrompibilidad||cmd:/unb||ttp:&3» &b&l{@UnbUP} Puntos de mejora%newline%&fAumenta tu%newline%&f&oIrrompibilidad &fen tu pico)
Error:
 
As the error says, you forgot to close the quotes.
You basically wrote "something < like this in a long code.

code_language.skript:
json("%player%","         &7&oEficiencia||cmd:/eff||ttp:&3» &b&l{@EffUP} Puntos de mejora%newline%&fAumenta tu%newline%&f&lEfiencia&fen tu pico||          &7&oFortuna||cmd:/for||ttp:&3» &b&l{@ForUP} Puntos de mejora%newline%&fIAumenta tu%newline%&f&oFortuna &fen tu pico||          &7&oIrrompibilidad||cmd:/unb||ttp:&3» &b&l{@UnbUP} Puntos de mejora%newline%&fAumenta tu%newline%&f&oIrrompibilidad &fen tu pico")

Closing the quotes will (most likely) solve the problem, unless there's something else wrong with the code (I think not).
Also, use %nl% instead of %newline% it's the same thing but shorter ;P
 
  • Like
Reactions: itismejoey
I do not have json.sk. Can you pass it to me ?
 
Last edited by a moderator:
Ok,Sorry but I did not see it and that's why I asked.Thank you very much for the help. It already works for me
 
Status
Not open for further replies.