removeMoney
if ps.removeMoney(source, 'cash', 100, 'Purchase item') then
print("Payment successful")
else
print("Insufficient funds")
endLast updated
if ps.removeMoney(source, 'cash', 100, 'Purchase item') then
print("Payment successful")
else
print("Insufficient funds")
endLast updated