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 Replace all "and" in "{text}"

Discussion in 'Skript' started by dudle, Apr 6, 2018.

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

    dudle Active Member

    Joined:
    Jan 31, 2017
    Messages:
    135
    Likes Received:
    0
    What I'm doing is this:

    Code (Skript):
    1.        
    2.         set {_plr::*} to all players
    3.         replace all "and" with "," in {_plr::*}
    4.         send "players: %{_plr::*}%" to loop-player
    5.  
    so what this does is it replaces the "and" in the {_plr::*} message, but it won't do it for some reason. I tried playing with this effect by trying to replace all "*a letter*" in the text with something else, and it worked (whenever a player has the specified letter to be replaced it works correctly), but it doesn't work with "and" word, which appears in this list {_plr::*} before the last player's name, that's a Skript thing.

    How can I replace it? ty
     
  2. Best Answer:
    Post #2 by DieHollander_, Apr 6, 2018
  3. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    Maybe this will work:
    Code (Skript):
    1. set {_plr::*} to "%{_plr::*}%"
    Put that above the line where you replace it
     
  4. dudle

    dudle Active Member

    Joined:
    Jan 31, 2017
    Messages:
    135
    Likes Received:
    0
    Works perfectly now, thanks a lot!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...