Hi, I wanted to do $ -> gold convertion in Skript, this is my code:
There are errors at "else if player can hold arg 1 gold ingot" and "give player arg 1 gold ingot". I don't have any idea how can I fix it.
Code:
command /withdraw [<number>]:
trigger:
if player's balance is less than arg 1:
send "&eYou don't have enough money."
stop
else if player can hold arg 1 gold ingot:
remove arg 1 from the player's money
give player arg 1 gold ingot
send "&eAdded %arg 1% gold to your inventory."
else:
send "&eYou don't have enough space in your inventory!"
There are errors at "else if player can hold arg 1 gold ingot" and "give player arg 1 gold ingot". I don't have any idea how can I fix it.