So.. How can i run a function inside a function?
My code:
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}%)]