Skript bank withdrawal help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Jun 23, 2023
32
0
6
command /resetcoins:
trigger:
set {_current} to player's balance
remove {_current} from player's balance

command /withdraw all:
trigger:
if {_deposited.%player%} is 0:
send "&aCoins not deposited." to player
else:
add {_deposited.%player%} to player's balance
send "&aTransaction received."
set {_deposited.%player%} to 0

command /deposit all:
trigger:
set {_deposited.%player%} to player's balance
remove {_deposited.%player%} from player's balance
this skript is supposed to deposit and witdraw all money of player.
when deposited it works, but withdrawal wont. please help.
 

Attachments

  • RRDUe8o.jpg
    RRDUe8o.jpg
    241.7 KB · Views: 159