function problem. variables cannot be use here

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

Mich7272

Member
Apr 12, 2019
49
0
0
skript: 2.4 beta
console error: variables cannot be used here. (set the maximum health of the {_p}'s to 10.5) and variables cannot be used here. (clear the {_p}'s inventory)
{(p: player)}
the clear the {_p}'s inventory dont work in a function and set the maximum health of the {_p}'s to 10.5
code
Code:
function reset(p: player):
    delete {vd::%{_p}%}
    delete {dinero.%{_p}%}
    delete {armadura.%{_p}%}
    delete {healer.%{_p}%}
    delete {espada.%{_p}%}
    delete {vida.%{_p}%}
    set slot 39 of {_p} to air
    set slot 38 of {_p} to air
    set slot 37 of {_p} to air
    set slot 36 of {_p} to air
    clear the {_p}'s inventory
 
Status
Not open for further replies.