I have search everywhere on the internet, and I can't figure out how to do it. I have tried making it a global variable, and many other things, but none of them worked.
Whenever I reload the file, I am greeted with this error message:
"Can't compare '_slot' with an integer"
Code:
command /gui-fill <player> <integer> <item>:
permission: op
trigger:
set {_local _slot} to 0
while _slot is less than arg-2:
format slot arg-2 of arg-1 with arg-3 named " " to close
add 1 to _slot
Whenever I reload the file, I am greeted with this error message:
"Can't compare '_slot' with an integer"
Last edited: