#functions with same argument dont work
1 messages · Page 1 of 1 (latest)
have you reloaded all scripts
yeah
If you renamed the file it still could have the original file "saved" or wtv, if /sk reload all doesn't work then I'm not quite sure
Alr done all of this
You're running into the same issue as I did before. Try going into the skbee config file and disabling some stuff like scoreboard, that's what fixed it for me, you might need to experiment a little more
can you send your sk info please
all i had to do is just restart and it fixed
I will
u cant make 2 exactly same named functions in skript (even if theyre in different skripts)
and ur defining one 2 times (at line 55 and 66)
yeah this isnt a bug... you literally defined it twice
you can if they are local i believe
correct
guys
im not dumb
i have not declared it 2 times
it keeps giving me errors
be4 it worked
now i have changed host, i have reloaded the skript for the second time after i've changed a text
and started do like that
and the function exist
tf i cant use same args
@formal pumice
send sk info too
and the code?
kinda long, but I have not declared it twice
its more files code
are you sure the functions dont already exist in displays.sk?
10000%
checked it 100 times
just look it complains about functions having same arguments
like how to fix it
that doesnt matter
it says they are in displays.sk
please tell me you havent used /reload or a plugin like plugmanx
[15:07:13 INFO]: [Skript] Loaded 5286 aliases in 155ms
[15:07:13 INFO]: Line 4: (misc.sk)
[15:07:13 INFO]: Function 'onlineLoop' with the same argument types already exists in script 'displays.sk'.
[15:07:13 INFO]: Line: function onlineLoop(p : player):
[15:07:13 INFO]:
[15:07:13 INFO]: Line 16: (misc.sk)
[15:07:13 INFO]: Function 'updateScoreboard' with the same argument types already exists in script 'displays.sk'.
[15:07:13 INFO]: Line: function updateScoreboard(p : player):
[15:07:13 INFO]:
[15:07:13 INFO]: Line 33: (misc.sk)
[15:07:13 INFO]: Function 'format' with the same argument types already exists in script 'displays.sk'.
[15:07:13 INFO]: Line: function format(n: number) :: text:
[15:07:13 INFO]:
[15:07:13 INFO]: Line 43: (misc.sk)
[15:07:13 INFO]: Function 'setVariables' with the same argument types already exists in script 'displays.sk'.
[15:07:13 INFO]: Line: function setVariables(p : player):
[15:07:13 INFO]:
[15:07:13 INFO]: Line 7: (displays.sk)
[15:07:13 INFO]: The function 'incomePerSecDisplay(object)' does not exist.
[15:07:13 INFO]: Line: incomePerSecDisplay({_p})
[15:07:13 INFO]:
[15:07:14 INFO]: Line 13: (plot.sk)
[15:07:14 INFO]: The function 'incomePerSecDisplay(object)' does not exist.
[15:07:14 INFO]: Line: incomePerSecDisplay({_p})
[15:07:14 INFO]:
[15:07:14 INFO]: Line 23: (plot.sk)
[15:07:14 INFO]: The function 'incomePerSecDisplay(object)' does not exist.
[15:07:14 INFO]: Line: incomePerSecDisplay({_p})
[15:07:14 INFO]:
[15:07:15 INFO]: Line 26: (prestige.sk)
[15:07:15 INFO]: The function 'incomePerSecDisplay(object)' does not exist.
[15:07:15 INFO]: Line: incomePerSecDisplay({_p})
[15:07:15 INFO]:
[15:07:15 INFO]: Line 20: (main.sk)
[15:07:15 INFO]: The function 'loadGlobalDisplays()' does not exist.
[15:07:15 INFO]: Line: loadGlobalDisplays()
[15:07:15 INFO]:
[15:07:16 INFO]: Encountered 9 errors while reloading the config, aliases and all scripts! (2559ms)
i have used /sk reload all
thats fine
and see ^^^ it is not just in display
it triggers all functions with same arguments
the code used to work since i've moved it to an another platform
same vers and all
i started server, it worked all fine, then i've changed a letter, reloaded it and poof
im a fucking count
man sorry
im dumb