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 Return not working. Am I too dumb?

Discussion in 'Skript' started by JX_Snack, Aug 23, 2022.

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

    JX_Snack New Member

    Joined:
    Feb 23, 2022
    Messages:
    5
    Likes Received:
    1
    Hi! I'm currently making a seperate money system for a roleplay. This is why I added a moneyAPI.

    I added a moneyAPIverify() function, what I can call in other skripts to check if the API is on, but somehow it gives me an error.

    My code:
    Code (Text):
    1. function moneyAPIverify():
    2.     return "api_found"
    This doesn't work. When I enable/reload the Skript it gives me an error called "This function doesn't return any value. Please use 'stop' or 'exit' if you want to stop the function".

    I am probably just too dumb to understand this error. Can anyone help me?
    --- Double Post Merged, Aug 24, 2022, Original Post Date: Aug 23, 2022 ---
    Problem has been SOLVED!

    How to fix (heres the fixed code):
    Code (Text):
    1. function moneyAPIverify() :: text:
    2.     return "api_found"
    It works.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...