Solved Functions

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

BenjaMCDK

New Member
Feb 16, 2017
9
0
1
So.. How can i run a function inside a function?

My code:
code_language.skript:
function openMissionGui(p: player):
    open chest with 1 row named "&6&l&oMissions" to {_p}
    wait 3 ticks
    format slot 0 of {_p} with black stained glass pane named " " to be unstealable
    format slot 1 of {_p} with black stained glass pane named " " to be unstealable
    format slot 3 of {_p} with black stained glass pane named " " to be unstealable
    format slot 5 of {_p} with black stained glass pane named " " to be unstealable
    format slot 6 of {_p} with black stained glass pane named " " to be unstealable
    format slot 8 of {_p} with black stained glass pane named " " to be unstealable
    format slot 2 of {_p} with diamond sword named "&eKill mission" to close then run [startKillMission(%{_p}%)]
    format slot 4 of {_p} with golden apple named "&eStreak mission"  to close then run [startStreakMission(%{_p}%)]
 
when i say "format slot bla bla to close then run [function({_p})]", it doesn't work. Btw it's inside a function. Check the code.
 
I know format slot isn't the best. I have been asked to recode the script. I asked if i could change it, but i got a no.
[doublepost=1522690092,1522689953][/doublepost]Doesn't work tho. But thx
 
Status
Not open for further replies.