Hi all,
I get this error on server start:
The code:
(I also tried replacing STRING with TEXT, but makes no difference)
And I call it this way:
The strange thing is, that when I remove ALL other scripts from the scripts-folder and ONLY keep this script, then NO error occurs on startup ... Any ideas?
The function will not work.
Also, the error does not show up when reloading the script on the server. After reloading the script the function works.
Using latest bensku's release 1.12.2.
PaperSpigot 1.12.2
I get this error on server start:
code_language.skript:
17:41:52
CONSOLE:
ERROR]: [Skript] The function 'ShowToplist' has only 1 argument, but 2 are given. If you want to use lists in function calls, you have to use additional parentheses, e.g. 'give(player, (iron ore and gold ore))' (events.sk, line 5410: ShowToplist({_id},{_p})')
The code:
code_language.skript:
function ShowToplist(id: string, p: player):
if {event::name::%{_id}%::gamemode} is "time":
message "test"
And I call it this way:
code_language.skript:
set {_p} to the player
set {_id} to "test"
ShowToplist({_id},{_p})
The strange thing is, that when I remove ALL other scripts from the scripts-folder and ONLY keep this script, then NO error occurs on startup ... Any ideas?
The function will not work.
Also, the error does not show up when reloading the script on the server. After reloading the script the function works.
Using latest bensku's release 1.12.2.
PaperSpigot 1.12.2
Last edited: