#Function refuse to load after updating to 2.8 - Please help!

1 messages · Page 1 of 1 (latest)

gray crane
#

Hey there, after updating Skript to version 2.8.6 I started having a weird issue with a specific function not loading. The script keeps giving an error that it contains a function with the same name yet I am 100% sure there is no other function with a name even close to it and I've also tried changing it to a local function but it doesn't really make a difference. If the script does manage to reload without error, it'll instead just give me an error in console when running.
What I've tried: changing the name of the function, restarting the server, changing it to a local function, moving the function to the top of the script, deleting script folder. Any help appreciated!

my code with the function:

    set {_selected.map} to a random element out of {Maps::*}
    if {Vote.Map} is set:
        set {_selected.map} to {Vote.Map}
    if {Game.ForceSet.Map} is set:
        set {_selected.map} to {Game.ForceSet.Map}
    if {Game.ForceSet.Gamemode} is set:
        set {Mode} to {Game.ForceSet.Gamemode}
    if {Mode} is "Assassins":
        set {Chest} to "RegularLooting"
    set {Mode} to {Mode} ? "Classic"
    set {Chest} to {Chest} ? "Normal"
    set {_selected.map} to {_selected.map} ? a random element out of {Maps::*}
    set {Map} to {_selected.map}
    Debug("Begin game function: Mode is %{Mode}% and map is %{Map}%")
rare drift
#

have you tried restarting your server?

sweet swan
rare drift
#

oh-

#

my bad

sweet swan
#

lol

deep harbor
#

what happens if you download the scripts, delete the scripts folder, restart, and then upload?

deep harbor