Solved Cannot understand this event

  • 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.
Maybe try using the actual Bensku skript
[doublepost=1529037568,1529037367][/doublepost]scratch that, i copied it into my test skript and it was error city.... all indenting issues
So i fixed all the indents and it seems to load fine
code_language.skript:
command /ss <player>:
    aliases: screenshare
    usage: /ss <target>
    description: Freezes the player in order to preform a screenshare.
    permission:  skript.ss
    trigger:
        set {_player} to argument 1
        set {_sender} to command sender
        if {screenshare} is "on":
            execute console command "/freeze {player} off"
            set {screenshare} to "off"
            execute console command "/gm 0 {player}"
            execute console command "/god {player} off"
            stop
        else:
            execute console command "/tp {player} {sender}"
            execute console command "/gm 2 {player}"
            execute console command "/sc &5&n{sender} is performing a screenshare on {player}"
            execute console command "/freeze {player} on"
            set {screenshare} to "on"
            execute console command "/god {player} on"
            stop
 
So how would I prevent this issue in the future?
[doublepost=1529038406,1529038376][/doublepost]
Maybe try using the actual Bensku skript
[doublepost=1529037568,1529037367][/doublepost]scratch that, i copied it into my test skript and it was error city.... all indenting issues
So i fixed all the indents and it seems to load fine
code_language.skript:
command /ss <player>:
    aliases: screenshare
    usage: /ss <target>
    description: Freezes the player in order to preform a screenshare.
    permission:  skript.ss
    trigger:
        set {_player} to argument 1
        set {_sender} to command sender
        if {screenshare} is "on":
            execute console command "/freeze {player} off"
            set {screenshare} to "off"
            execute console command "/gm 0 {player}"
            execute console command "/god {player} off"
            stop
        else:
            execute console command "/tp {player} {sender}"
            execute console command "/gm 2 {player}"
            execute console command "/sc &5&n{sender} is performing a screenshare on {player}"
            execute console command "/freeze {player} on"
            set {screenshare} to "on"
            execute console command "/god {player} on"
            stop


So how would I prevent this issue in the future?
 
indent correct i guess?!?! not really sure which program you're using for typing your code out... but make sure indents are either tabs or 4 spaces
 
Status
Not open for further replies.