Solved Skript errors?

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

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

vitusverden

Active Member
Aug 16, 2017
50
2
8
So i have just coded a script and it says the errors:
code_language.skript:
[10:51:26 ERROR]: can't understand this event: 'on movement' (anticheat-more.sk, line 1: on movement:')
[10:51:26 ERROR]: can't understand this event: 'on attack' (anticheat-more.sk, line 25: on attack:')
[10:51:26 INFO]: [Skript] Encountered 2 errors while reloading anticheat-more.sk!

code:
code_language.skript:
on movement:
    trigger:
        set {_y1} to players y axis
        if block below player is air:
            wait 1 second
            if block below player is air:
                set {_y2} to players y axis
                if {_y2} is higher than {_y1}:
                    add 1 to {mistenkt.fly.%player%}
                    if {mistenkt.fly.%player%} is 5:
                        loop all players:
                            if loop-player has permission "staff.notify":
                                send "%player% ser ud til at hacke. Ping: %players ping%. TPS: %tps%." to loop-player
                                set {mistenkt.fly.%player%} to 0
                    }
                if {_y2} is {_y1}:
                    add 1 to {mistenkt.fly.%player%}
                    if {mistenkt.fly.%player%} is 5:
                        loop all players:
                            if loop-player has permission "staff.notify":
                                send "%player% ser ud til at hacke (Fly). Ping: %players ping%. TPS: %tps%." to loop-player
                                set {mistenkt.fly.%player%} to 0


on attack:
    trigger:
        if range between attacker and victim is more than 4.1:
            add 1  {mistenkt.range.%attacker%}
            if {mistenkt.range.%attacker%} is 5:
                send "%player% ser ud til at hacke (KA). Ping: %players ping%. TPS: %tps%. Latest range: %range between attacker and victim%." to loop-player

every 30 seconds:
    loop all players:
        set {mistenkt.fly.%loop-player%} to 0


Version: dev32b
Author: bensku
 
The events you are using are incorrect, and are therefore not being recognized. "on any movement" and "on damage".
 
Oh thanks :emoji_slight_smile:
[doublepost=1515876581,1515832908][/doublepost]Now i have edited it (And added some new) and it still dosnt work?
code_language.skript:
[21:43:45 ERROR]: can't understand this event: 'on any movement' (flyrange.sk, line 1: on any movement:')
[21:43:45 ERROR]: can't understand this event: 'on any movement' (flyrange.sk, line 40: on any movement:')

code:
https://pastebin.com/3QuMTtGU
 
Status
Not open for further replies.