#gui cancel event not working

1 messages · Page 1 of 1 (latest)

simple canyon
#

command /shop:
trigger:
set {chestgui} to a new chest inventory with 3 rows with name "&aSite 1009"
set slot integers from 0 to 26 of {chestgui} to grey stained glass pane with name ""
set slot 13 of {chestgui} to sunflower with name "Cigány" with lore "&6Im cigány" and "&1"
open {chestgui} to player

on inventory click:
if name of event-invetnory is "&aSite 1009":
if event-slot is 13:
close player's inventory
send "" to player
send "%player% spawn selected" to player
cancel event

fallow cedar
#

read the line out loud

#

or read it slowly

simple canyon
#

so how else can I test for it

#

I tried the equal sign

#

but it dosent understand it

fallow cedar
#

that's not the problem

#

read the line slowly, spot the mistake

simple canyon
#

cant compare with a text?

fallow cedar
#

can't compare what with a text?

simple canyon
#

I dont get it

fallow cedar
#

read the line slowly, you'll notice the mistake in there

simple canyon
#

where

#

gui cancel event not working

tender bobcat
#

read the line slowly and take note of the typo

blazing raft
#

look closer