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.

Color codes are reset!

Discussion in 'Skript' started by Gold_Saw, Feb 6, 2019.

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

    Gold_Saw Member

    Joined:
    Feb 6, 2019
    Messages:
    1
    Likes Received:
    0
    Color codes are reset in some messages. Why? Example:

    https://prnt.sc/mhlvwy

    Message's code:

    Code (Text):
    1. function setColor(p: player , t: text , t2: text):
    2.     if {_t} is "isim":
    3.         if {_t2} is "acik mavi":
    4.             send "{@prefix} &7İsim rengin &bAçık Mavi &7olarak ayarlandı." to {_p}
    5.             send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
    6.             stop
    7.         else if {_t2} is "turkuaz":
    8.             send "{@prefix} &7İsim rengin &9Turkuaz &7olarak ayarlandı." to {_p}
    9.             send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
    10.             stop
    11.         else if {_t2} is "pembe":
    12.             send "{@prefix} &7İsim rengin &dPembe &7olarak ayarlandı." to {_p}
    13.             send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
    14.             stop
    15.         else if {_t2} is "acik kirmizi":
    16.             send "{@prefix} &7İsim rengin &cAçık Kırmızı &7olarak ayarlandı." to {_p}
    17.             send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
    18.             stop
    19.         else if {_t2} is "acik yesil":
    20.             send "{@prefix} &7İsim rengin &aAçık Yeşil &7olarak ayarlandı." to {_p}
    21.             send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
    22.             stop
    23.         else if {_t2} is "turuncu":
    24.             send "{@prefix} &7İsim rengin &6Turuncu &7olarak ayarlandı." to {_p}
    25.             send "{@prefix} &7Yeni isim görünümün: %colored {_p}'s displayname%" to {_p}
    26.             stop
    27.     else if {_t} is "sohbet":
    28.         if {_t2} is "acik mavi":
    29.             set {chatcolor::%{_p}%} to "&b"
    30.             send "{@prefix} &7Sohbet rengin &bAçık Mavi &7olarak ayarlandı." to {_p}
    31.             stop
    32.         else if {_t2} is "turkuaz":
    33.             set {chatcolor::%{_p}%} to "&c"
    34.             send "{@prefix} &7Sohbet rengin &9Turkuaz &7olarak ayarlandı." to {_p}
    35.             stop
    36.         else if {_t2} is "pembe":
    37.             set {chatcolor::%{_p}%} to "&d"
    38.             send "{@prefix} &7Sohbet rengin &dPembe &7olarak ayarlandı." to {_p}
    39.             stop
    40.         else if {_t2} is "acik kirmizi":
    41.             set {chatcolor::%{_p}%} to "&c"
    42.             send "{@prefix} &7Sohbet rengin &cAçık Kırmızı &7olarak ayarlandı." to {_p}
    43.             stop
    44.         else if {_t2} is "acik yesil":
    45.             set {chatcolor::%{_p}%} to "&a"
    46.             send "{@prefix} &7Sohbet rengin &aAçık Yeşil &7olarak ayarlandı." to {_p}
    47.             stop
    48.         else if {_t2} is "turuncu":
    49.             set {chatcolor::%{_p}%} to "&6"
    50.             send "{@prefix} &7Sohbet rengin &6Turuncu &7olarak ayarlandı." to {_p}
    51.             stop
     
  2. T

    TubeVillager Active Member

    Joined:
    Jan 29, 2019
    Messages:
    28
    Likes Received:
    1
    Can you please show the output of the messages so I can see which colors are reset and where?
     
Thread Status:
Not open for further replies.
Loading...