Error "There's no player in a function event"

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

HackerOTVW

Active Member
Sep 10, 2017
91
2
8
Skript version: 2.2 dev27
Umbaska version: 3.3
Server version: 1.8.8

My function:
code_language.skript:
function boardOnline(PlayerName: player):
    wipe {_PlayerName} sidebar
    set name of sidebar of {_PlayerName} to "{@boardname}"
    set score "{@boardline15}" in sidebar of {_PlayerName} to 0
    set score "{@boardline10}" in sidebar of {_PlayerName} to 0
    set score "{@boardline9}" in sidebar of {_PlayerName} to 0
    set score "{@boardline8}" in sidebar of {_PlayerName} to 0
    set score "{@boardline7}" in sidebar of {_PlayerName} to 0
    set score "{@boardline6}" in sidebar of {_PlayerName} to 0
    set score "{@boardline5}" in sidebar of {_PlayerName} to 0
    set score "{@boardline4}" in sidebar of {_PlayerName} to 0
    set score "{@boardline3}" in sidebar of {_PlayerName} to 0
    set score "{@boardline2}" in sidebar of {_PlayerName} to 0
    set score "{@boardline1}" in sidebar of {_PlayerName} to 0
    stop

Error:
code_language.skript:
[04:24:10 ERROR]: There's no player in a function event (LoL.sk, line 924: set score "{@boardline8}" in sidebar of {_PlayerName} to 0')
[04:24:10 ERROR]: There's no player in a function event (LoL.sk, line 925: set score "{@boardline7}" in sidebar of {_PlayerName} to 0')
[04:24:10 ERROR]: There's no player in a function event (LoL.sk, line 926: set score "{@boardline6}" in sidebar of {_PlayerName} to 0')
[04:24:10 ERROR]: There's no player in a function event (LoL.sk, line 927: set score "{@boardline5}" in sidebar of {_PlayerName} to 0')
[04:24:10 ERROR]: There's no player in a function event (LoL.sk, line 928: set score "{@boardline4}" in sidebar of {_PlayerName} to 0')
[04:24:10 ERROR]: There's no player in a function event (LoL.sk, line 929: set score "{@boardline3}" in sidebar of {_PlayerName} to 0')

I do not know where I was wrong, please help me!
 
Status
Not open for further replies.