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 command

Discussion in 'Skript' started by Funck, May 20, 2020.

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

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    I have some code that can be seen from below. This is just an example, the skript itself takes 200 lines
    Code (Text):
    1. command /check [<text>]:
    2.     trigger:
    3.         if arg-1 is online:
    4.             message "&aonline"
    5.         else:
    6.             message "&coffline"
    when i restart this skript, this error appears
    Code (Text):
    1. Can't compare a text with a types.onlinestatus
    I know that the text can be replaced by an offline player, but if I do this, my main script will not work. Is there a way to fix this error without replacing the text with an offline player?
     
  2. Killerz1243

    Killerz1243 Active Member

    Joined:
    Oct 31, 2019
    Messages:
    78
    Likes Received:
    7
    Code (Text):
    1. if arg-1 parsed as an offline player is online:
    try that
     
  3. Funck

    Funck Member

    Joined:
    Apr 22, 2018
    Messages:
    30
    Likes Received:
    0
    thanks, its working!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...