doesn't work ??

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

FlFlxGamer

Member
Feb 7, 2019
28
1
0
25
http://prntscr.com/mqetxc

Code:
on click with nether star:
 world is "ffa":
  open chest inventory with 1 row to player named "&4Kits"
  format slot 1 of player's current inventory with block of emerald
  format slot 3 of player's current inventory with block of diamond
on inventory click:
 world is "ffa":
  if name of player's current inventory is "&4Kits":
   if clicked slot is 1:
    if player has permission "emerald.kit":
     make player excute command "kit emerald"
[doublepost=1551195129,1551195071][/doublepost]If AnyOne will help i hope you go to the link
 
1) Switch 'to player' and 'named "&4Kits"' in line 3
2) Use set slot instead of format slot
3) Change 'with' to 'to' in line 4 and 5
4) Use index of clicked slot instead of clicked slot
5) You typed 'excute', use 'execute'
6) Don't use 1 space as indentation please, it's really annoying (use 4 spaces / 1 tab instead)
 
1) Switch 'to player' and 'named "&4Kits"' in line 3
2) Use set slot instead of format slot
3) Change 'with' to 'to' in line 4 and 5
4) Use index of clicked slot instead of clicked slot
5) You typed 'excute', use 'execute'
6) Don't use 1 space as indentation please, it's really annoying (use 4 spaces / 1 tab instead)
thanks pro you helped me a lot :emoji_grinning:
[doublepost=1551213554,1551211622][/doublepost]
1) Switch 'to player' and 'named "&4Kits"' in line 3
2) Use set slot instead of format slot
3) Change 'with' to 'to' in line 4 and 5
4) Use index of clicked slot instead of clicked slot
5) You typed 'excute', use 'execute'
6) Don't use 1 space as indentation please, it's really annoying (use 4 spaces / 1 tab instead)
listen i tried to use the 4 spaces but didn't worked
i can use 1 space only yes ?
 
It's fine to use 1 space, but it's easier to read with 4 spaces / 1 tab. You have to use that everywhere in your script for it to work