Description
Version:
[Skript] Loading Skript v2.2-dev32d
Description:
I am calling this function within my code:
EventPlayerJoin({_id},{_p})
(both variables are set)
And this is the function:
function EventPlayerJoin(id: text, p: player):
broadcast "TEST"
Issue:
When starting up my server I get this error in the log:
[Skript] The function 'EventPlayerJoin' requires at least 3 arguments, but only 2 are given. (events_default.sk, line 294: EventPlayerJoin({_id},{_p})')
The function does not get executed.
But after reloading the skript containing this code I get no errors and the function works fine.
Why?
Ths issue may be that I have several skript files (1.sk, 2.sk, 3.sk) which all contain the same function except that in 3.sk I have the same function name but with 3 required arguments.
Renaming the function in 1.sk seems to help. I was able to run the function in 1.sk)