Couldn't reload scripts

  • 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 comminuty!

    Now, what are you waiting for? Join the community now!

Aerosmite

New Member
Jan 27, 2017
9
2
0
25
Hi ! I have a annoying bug with Skript which appeared recently. Some script aren't reloading and feedback for exemple this in the log.
Here is the skript, line 54 and maybe 52 seems to be the origin of the problem.
The function is
code_language.skript:
# Test si le joueur est bien dans la liste.
function PlayerIsInList(p: player,players: strings) :: boolean:
    if {_players::*} is set:
        loop {_players::*}:
            set {_check::*} to groups 0 of loop-value matched to "^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$"
            if {_check::1} is set:
                set {_players::%loop-index%} to player from "%loop-value%"
                clear {_check::*}
            if "%{_players::%loop-index%}%" is "%{_p}%":
                return true
                stop
    return false
 

Attachments

  • log.txt
    6.5 KB · Views: 288
  • fin.sk
    5.2 KB · Views: 305
Last edited:
1. The function PlayersIsInList has to be loaded before Fin.sk to make it work.
2. In that regex, the "^" and "$" aren't doing anything such as they're javascript tags, I also recommend to use TuSKe for regex stuff.
 
1. The function PlayersIsInList has to be loaded before Fin.sk to make it work.
2. In that regex, the "^" and "$" aren't doing anything such as they're javascript tags, I also recommend to use TuSKe for regex stuff.
They do do stuff if global search is on (/g flag, not sure if skQuery has it by default).
 
1. The function PlayersIsInList has to be loaded before Fin.sk to make it work.
2. In that regex, the "^" and "$" aren't doing anything such as they're javascript tags, I also recommend to use TuSKe for regex stuff.
I load the function first and it was working before ! I don't know what happen, but after that Skript began to bug completely :emoji_confounded: