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:
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):
It works.
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.