Functions not working

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

Davi3684

Member
Dec 29, 2017
15
0
0
21
Minecraft Version:1.8
---
Full Code:
code_language.skript:
function myFunction(p: player):
    set helmet of {_p} to leather helmet

Errors on Reload: myFunction(p: player) is not a text

So I got another error that I just can't find a solution to. I've tried to make the p in player capitalized but that doesn't seem to help.

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
 
Odd, I pasted your example into my test.sk and it loads just fine. Further still I set up a test command that calls it and that is fine as well.
code_language.skript:
function myFunction(p: player):
    set helmet of {_p} to leather helmet
    
    
command /test:
    trigger:
        myFunction(player)
Double check your indentations and spacing perhaps?
 
Status
Not open for further replies.