Well, i got this skript that doesnt work. It reloads and says its working. I've tried everything that the skript says and i've tested what doesnt work. After "Player has ITEM named "---":" it doesnt work.. plz help.
Code:
function buyShop(p: Player, i: Text):
if {_i} is "p1":
if {Balance::%{_p}%} is higher than or equal to 500:
{_p} has wooden pickaxe named "&7Pickaxe (1)":
send "tes" to {_p}
give {_p} 1 wooden_pickaxe named "&7Pickaxe (2)"
send "&7Successfully purchased &6[1]" to {_p}
remove 500 from {Balance::%{_p}%}
remove 1 wooden_pickaxe named "&7Pickaxe (1)" from {_p}