Hello, I need advice. I'm trying to make a player whose economy I have defined. However, there is a smaller catch and the fact that I want to ensure that my custom economy can not add balance to the minus. So I want to find out if the player who uses the order has more than 0 on the account. I use vault + essentials as an economy. But with this code that I have, it shows me an internal error error .. The script itself reloads it for me without a problem. Thanks for the help
CODE -
command /faction [<offlineplayer>] [<int>]:
trigger:
if arg 1 is "Farmas":
if arg 2 > 0:
loop all players:
if player's balance is more than 0:
add arg 2 to {balfarmaa.%arg 1%}
send "set %arg 2% to %arg 1%, Balance - %{balfarmaa.%arg 1%}%"
make console execute command "eco take %player% %arg-2%"
OR pastebin -
https://pastebin.com/q1vcJcAu
Thanks for help me <3.
CODE -
command /faction [<offlineplayer>] [<int>]:
trigger:
if arg 1 is "Farmas":
if arg 2 > 0:
loop all players:
if player's balance is more than 0:
add arg 2 to {balfarmaa.%arg 1%}
send "set %arg 2% to %arg 1%, Balance - %{balfarmaa.%arg 1%}%"
make console execute command "eco take %player% %arg-2%"
OR pastebin -
https://pastebin.com/q1vcJcAu
Thanks for help me <3.