Solved Return not working. Am I too dumb?

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

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

JX_Snack

New Member
Feb 23, 2022
5
1
3
23
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:
function moneyAPIverify():
    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?
[doublepost=1661325047,1661280508][/doublepost]Problem has been SOLVED!

How to fix (heres the fixed code):
Code:
function moneyAPIverify() :: text:
    return "api_found"

It works.
 
Status
Not open for further replies.