Solved Why this isnt working?

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

BinBaz

New Member
Oct 10, 2022
8
0
1
Im trying to do this
Code:
        if arg-1 is "host":
            broadcast "&c&l%player% Hosted an event &aEvent Starting in 30s <run command:/eventtp %arg-2%>&a&l[Join Event]<reset>"
but it shows this
upload_2022-10-12_17-1-57.png
 

Attachments

  • upload_2022-10-12_17-1-25.png
    upload_2022-10-12_17-1-25.png
    10.6 KB · Views: 169
  • upload_2022-10-12_17-1-38.png
    upload_2022-10-12_17-1-38.png
    10.6 KB · Views: 156
because broadcast doesn't support formatted messages.
use this instead:
Code:
if arg-1 is "host":
  send formatted "&c&l%player% Hosted an event &aEvent Starting in 30s <run command:/eventtp %arg-2%>&a&l[Join Event]<reset>" to all players,console
 
Its a stupid useless annoying warning from skript that u can ignore.
To disable it change
Code:
disable variable missing and/or warnings:
# Disables the "List is missing 'and' or 'or', defaulting to 'and'" warning when reloading your script.
to true in the config
 
Status
Not open for further replies.