Indentation error pops up when loading skript

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

master_of_pooms

Active Member
May 28, 2023
131
10
18
command /sell:
trigger:
if player's held item is dirt:
add 10*%amount of player's tool% to {total}
if player's held item is grass_block:
add 10*%amount of player's tool% to {total}
if player's held item is oak_log:
add 10*%amount of player's tool% to {total}
if player's held item is oak_leaves:
add 10*%amount of player's tool% to {total}
send "Sold your held item for %{total}%"
add {total} to {money::%player%}
set player's held item to air
command /withdraw:
trigger:
if {money::%player%} is greater than 0:
set {money::%player%} to {money::%player%}-1
give player sunflower named "&eToken"
else:
send "&4Too poor :emoji_frowning:"
 

Attachments

  • Screen Shot 2023-07-04 at 4.29.41 PM.png
    Screen Shot 2023-07-04 at 4.29.41 PM.png
    10.8 KB · Views: 176
Change your editor settings to put TAB-s, and not spaces. Or, just edit it in notepad, then fix it just by replacing the 4 spaces on that line with 2 TAB-s.
 
  • Like
Reactions: Kunkar1337