Jump to content

i need help (2 errors)


HeyItsmeblury

Recommended Posts

Error: indentation error: expected 2 tabs, but found 16 spaces (title.sk, line 7: format slot 1 of player with nametag named "&e[Clout] &fTitle &7(Right-Click)" to close') invalid line - all code has to be put into trigger (title.sk line 8: then run [execute console command "sudo %player% suffixcc"]')

 

Skript:

command /title:
#No perms needed
    trigger:
        open chest with 4 rows named "&e&lTitles" to player
        format slot 31 of player with red stained glass pane named "&c&lUnEquip Your Title" to close then run [execute console command "sudo %player% suffixoff"]
        format slot 0 of player with nametag named "&b[LagHut] &fTitle &7(Right-Click)" to close then run [execute console command "sudo %player% suffixmm"]
                format slot 1 of player with nametag named "&e[Clout] &fTitle &7(Right-Click)" to close
then run [execute console command "sudo %player% sufixcc"]
            
command /suffixcc: 
 trigger:
  send "&aEnabled Title: &e[Clout]"
  execute console command "pex user %player% suffix &e[Clout] "
  execute console command "nte player %player% suffix '&e[Clout] '"

command /suffixmm: 
 trigger:
  send "&aEnabled Title: &b[LagHut]"
  execute console command "pex user %player% suffix &b[LagHut] "
  execute console command "nte player %player% suffix '&b[LagHut] '"

command /suffixl: 
 trigger:
  send "&aEnabled Title: &b[-_-]"
  execute console command "pex user %player% suffix &b[-_-] "
  execute console command "nte player %player% suffix '&b[-_-] '"

command /suffixoff: 
 trigger:
  send "&aDisabled Title"
  execute console command "pex user %player% suffix &9"
  execute console command "nte player %player% suffix &9"

Link to comment
Share on other sites

Well first off, if there's an indentation error, that means your spacing/tabs are off (make sure everything is aligned correctly, and in the right sections.) Also, you should use TuSKe for GUIs. The documentation for TuSKe can be found here.

[VIP] 2019

[JR.MOD] 10/29/2019

[MOD] 12/30/2019

nerd3.png

ok.png

sure.png

q.png

Link to comment
Share on other sites

  • 3 weeks later...
command /title:
#No perms needed
    trigger:
        open chest with 4 rows named "&e&lTitles" to player
        format slot 31 of player with red stained glass pane named "&c&lUnEquip Your Title" to close then run [execute console command "sudo %player% suffixoff"]
        format slot 0 of player with nametag named "&b[LagHut] &fTitle &7(Right-Click)" to close then run [execute console command "sudo %player% suffixmm"]
        format slot 1 of player with nametag named "&e[Clout] &fTitle &7(Right-Click)" to close then run:
			execute console command "sudo %player% sufixcc"
            
command /suffixcc: 
 trigger:
  send "&aEnabled Title: &e[Clout]"
  execute console command "pex user %player% suffix &e[Clout] "
  execute console command "nte player %player% suffix '&e[Clout] '"

command /suffixmm: 
 trigger:
  send "&aEnabled Title: &b[LagHut]"
  execute console command "pex user %player% suffix &b[LagHut] "
  execute console command "nte player %player% suffix '&b[LagHut] '"

command /suffixl: 
 trigger:
  send "&aEnabled Title: &b[-_-]"
  execute console command "pex user %player% suffix &b[-_-] "
  execute console command "nte player %player% suffix '&b[-_-] '"

command /suffixoff: 
 trigger:
  send "&aDisabled Title"
  execute console command "pex user %player% suffix &9"
  execute console command "nte player %player% suffix &9"

 

Hello ily all and I hope you are having a fantastic day.

Drink water or you will die.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...