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 Custom Command has no output

Discussion in 'Skript' started by DaPumpkinGR, Mar 23, 2018.

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

    DaPumpkinGR Member

    Joined:
    Mar 7, 2017
    Messages:
    3
    Likes Received:
    0
    My problem is that when i use /number with the create arguement, the command returns nothing and it doesn't set a number for me.

    Skript Version: 2.2-dev34
    Skript Author:Bensku
    Minecraft Version:1.12.2

    ---
    Full Code:


    i removed the skript because someone already stole it in 1 day.

    Errors on Reload:

    Code (Skript):
    1.  
    2. [09:23:47 WARN]: [Skript] Possible name conflict of variables {number::%arg 2%} and {number::*} (there might be more conflicts). (phones.sk, line 21: clear {number::%arg 2%}')
    3. [09:23:47 WARN]: [Skript] Possible name conflict of variables {number::%arg 1%} and {number::*} (there might be more conflicts). (phones.sk, line 57: clear {number::%arg 1%}')
    4. [09:23:47 INFO]: [Skript] All scripts loaded without errors.
    5. [09:23:47 INFO]: [Skript] Loaded 1 script with a total of 0 triggers and 5 commands in 0.15 seconds
    6. [09:23:47 INFO]: [Skript] Finished loading.
    7. [09:23:48 INFO]: [Skript] You're currently running the latest stable version of Skript.
    8.  
    Other Useful Info:

    Addons using (including versions):
    SkRayFall 1.9.12

    Troubleshooting:

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes
    What other methods have you tried to fix it?Renamed local variables.
     
    #1 DaPumpkinGR, Mar 23, 2018
    Last edited: Mar 24, 2018
  2. Best Answer:
    Post #2 by ShaneBee, Mar 23, 2018
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Okay, I figured it out.

    Because this --> loop {number::*}
    Its empty, there is nothing to loop.
    For fun, i added this to the bottom of your skript

    Code (Skript):
    1. command /testnum <offline player>:
    2.     trigger:
    3.         set {number::%arg-1%} to a random integer from 6900000000 to 6999999999
    4.         send "%arg-1%'s new number is %{number::%arg-1%}%" to player
    This allow me to set a number for another player, once I did that, your code works perfectly fine.

    A quick simple fix I found for this, would be to add to the top
    Code (Skript):
    1. on load:
    2.     set {number::server} to 1
    Restart your server, and you should be good to go :emoji_slight_smile:
     
    #2 ShaneBee, Mar 23, 2018
    Last edited: Mar 23, 2018
    • Friendly Friendly x 1
  4. DaPumpkinGR

    DaPumpkinGR Member

    Joined:
    Mar 7, 2017
    Messages:
    3
    Likes Received:
    0
    Works like a charm, thank you!
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    You’re welcome :emoji_slight_smile:
    The bit that I saw of your skript, looks like it’s going to be a fun / awesome skript :emoji_slight_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...