So I have this problem where i try to make a withdraw function to my coin skript. The coin skript gives you coins every 300 seconds... but when i try to give player the amount they types it gives me this error:
2 parsed as integer' is not a type (coin.sk, line 48: set {_num} to arg-2 parsed as integer
The code is this:
else if arg-1 is "withdraw":
if {coins.%player%} is greater than arg-2:
set {_num} to arg-2 parsed as integer
give player {_num} of gold ingot named "&6COIN" with lore "&6Rightclick to redeem"
2 parsed as integer' is not a type (coin.sk, line 48: set {_num} to arg-2 parsed as integer
The code is this:
else if arg-1 is "withdraw":
if {coins.%player%} is greater than arg-2:
set {_num} to arg-2 parsed as integer
give player {_num} of gold ingot named "&6COIN" with lore "&6Rightclick to redeem"