Solved Func Question

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

    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.

KrswtkhrSK

Member
Jan 28, 2017
27
2
1
Loading the sample code written in skunity "function" caused an error.
https://www.skunity.com/functions

code_language.skript:
command /testfunction:
    trigger:
        access "testfunction" from "testing"
        broadcast "%{_test}%"
function "testfunction":   
    broadcast "lol"
    set transient "testoutput" to "xD - %parameter 1%"
    $ access
    set {_test} to transient "testoutput"
    wait 2 seconds
    soft return
    wait 2 seconds
    broadcast "finished!"

The name of function seems to be properly visible, but what is it?
I would appreciate it if you could tell me the correct code.

The environment is Spigot 1.11.2, bensku's latest, lime's Forked skquery.
 

Attachments

  • 2017y02m01d_234618958.png
    2017y02m01d_234618958.png
    64.8 KB · Views: 394
In addition, your function must be defined before you call it, so you have to put it at the top of the script (or in a separate script which will be loaded first).
 
... What? What do you mean?
Although I tried it a bit, the function of skquery apparently does not seem to work in my environment.
Even if we placed function at the beginning and defined, the same error appeared.

Thanks.
 
Status
Not open for further replies.