Can someone help me, why does it not work?

  • 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 community!

    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.

TSBeatz

New Member
Apr 26, 2017
9
1
3
Skript Version: Skript 2.2 dev25
Skript Author: Bensku
Minecraft Version: 1.11.2



code_language.skript:
function ChatTeam(player: player, dispname: text, msg: text):
    if length of {_msg} is greater than 1:
        if first character of {_msg} is "*":
            set {_msg} to "%subtext of {_msg} from characters 2 to (length of {_msg})%"
            send "%{_dispname}% %{_msg}%" to console
            send "%{_dispname}% %{_msg}%" to all players

Errors on Reload: no errors.
Umbaska 3.3, SkRayFall 1.9.10, skUtilities 0.9.0, MundoSK 1.7.4, TusKe 1.8.4-dev.3
 
What is the code that's passing information to this function?
 
This is supposed to be an admin chat with *Test message
 
This is supposed to be an admin chat with *message
No, can you post the code that calls the function? The function needs to get it's player and two text variables from somewhere.
 
Status
Not open for further replies.