So im currently making a server shop and i have a shop gui that sells items the thing is im kinda new to skript but i have no idea what im doing wrong here can someone help me out?
on inventory click:
if name of event-inventory is "&8Sell Common Items":
cancel event
if clicked slot = 0:
if amount of cobblestone in player's inventory is less than 32:
send "&c&lYou Dont Have Enough items!" to player
if amount of cobblestone in player's inventory is more than 32:
execute console command "clear %player% cobblestone 32"
add 3.2 to player's balance
im probs a idiot lol id appreciate the help
on inventory click:
if name of event-inventory is "&8Sell Common Items":
cancel event
if clicked slot = 0:
if amount of cobblestone in player's inventory is less than 32:
send "&c&lYou Dont Have Enough items!" to player
if amount of cobblestone in player's inventory is more than 32:
execute console command "clear %player% cobblestone 32"
add 3.2 to player's balance
im probs a idiot lol id appreciate the help