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.

Friend Skript ERROR

Discussion in 'Skript' started by wCrazy_, Jan 16, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. wCrazy_

    wCrazy_ Member

    Joined:
    Jan 7, 2021
    Messages:
    15
    Likes Received:
    0
    Problem is in remove page.

    Error in game.
    [​IMG]
    Error in console.

    CODE:

    Code (Text):
    1.         if arg-1 is "remove":
    2.             if arg-2 isn't set:
    3.                 send "{@friend} &7Use &6/friend remove <player>"
    4.  
    5.             if arg-2 is in {friend::%player%}
    6.                 send "{@friend} &6%arg-2% &7is not your friend."
    7.  
    8.             else:
    9.                 remove "arg-2" from {friend::%player%}
    10.                 send "{@friend} &7You have successfully removed &6%arg-2% &7from your friends"
    11.                 send "{@friend} &6%player% &7removed you from friends." to arg-2
     
  2. dergrosehd

    dergrosehd Member

    Joined:
    Feb 9, 2020
    Messages:
    12
    Likes Received:
    0
    You forgot a colon after line 5

    Code (Text):
    1.         if arg-1 is "remove":
    2.             if arg-2 isn't set:
    3.                 send "{@friend} &7Use &6/friend remove <player>"
    4.  
    5.             if arg-2 is in {friend::%player%}:
    6.                 send "{@friend} &6%arg-2% &7is not your friend."
    7.  
    8.             else:
    9.                 remove "arg-2" from {friend::%player%}
    10.                 send "{@friend} &7You have successfully removed &6%arg-2% &7from your friends"
    11.                 send "{@friend} &6%player% &7removed you from friends." to arg-2
     
  3. TehCheetah

    TehCheetah Member

    Joined:
    Feb 7, 2021
    Messages:
    49
    Likes Received:
    1
    - Line 9 - In the "arg-2", put "%arg-2%"
    - Line 5 - Colon isn't there
     
Thread Status:
Not open for further replies.

Share This Page

Loading...