function shoppay(player: player, price: number, item: item):
set {_itemamount} to item amount of {_item}
set {_price2} to {_price} * {_itemamount}
if {_player}'s balance >= {_price2}:
if {_player} has space for {_item}:
remove {_price2} from {_player}'s balance
give {_itemamount} of {_item} to {_player}
broadcast "Item Amount: %{_itemamount}%"
broadcast "Item: %{_item}%"
broadcast "Price2: %{_price2}%"
broadcast "Price: %{_price}%"
broadcast "Player: %{_player}%"
else:
send "&cYou dont have room in your inventory for that" to {_player}
else:
send "&cYou do not have enough money" to {_player}```
#My whole gui just broken..
1 messages · Page 1 of 1 (latest)