I captured data from a dialog, I can display it fine, but when I try to compare it (atm script) then it says it is a string.....
I have tried the call "bull = " + shoot tricks and all that, I can not get anything to work... any ideas?
_name = "civ1"
_cash = call format ["%1_cash", _name]
_bank = call format ["%1_bank", _name]
_withdrawinput = _this select 0
_with = -1
call {"""_with = format [%1, _withdrawamount]"""}
if (_bank < _with OR _bank < 1) then { Goto "nomoney" }
_cash = _cash + _with
_bank = _bank - _with
Hint Format ["%1 ... %2 .... %3", _cash, _bank, _with]
call format ["%1_cash=%2", _name,_cash]
call format ["%1_bank=%2", _name,_bank]
call format ["%1 groupChat ""%1 you now have: $%2 in your pocket and $%3 in your bank account.""",_name,_cash,_bank]
Exit
#nomoney
Hint "No Money!"
Exit