Jump to content
Sign in to follow this  
dexatrin82

Deposit more than 999999

Recommended Posts

I have chnaged my fn_bankDeposit, and for some reason anything over 999999 is not passing the TON_fnc_isnumber check, and throwing the STR_ATM_notnumeric string, any help would be appreciated, where else do I need to edit to increase my deposit buttons to enable deposits over 999999 other than just the check in fn_bankDeposit.sqf

Share this post


Link to post
Share on other sites

This is the TON_fnc_isNumber check

TON_fnc_isNumber =
compileFinal "
    params [
        ['_string','',['']]
    ];
    if (_string isEqualTo '') exitWith {false};
    private _array = _string splitString '';
    private _return = true;
    {
        if !(_x in ['0','1','2','3','4','5','6','7','8','9']) exitWith {
            _return = false;
        };
    } forEach _array;
    _return;
";

publicVariable "TON_fnc_isNumber";

When you are trying to deposit money are you using "deposit all" or just "deposit"?

Share this post


Link to post
Share on other sites

As long as I have less than 1,000,000  I can use either, If I type in anything bigger than 999999 on the inputbox and use regular deposit it does the same thing and returns STR_ATM_notnumeric

Share this post


Link to post
Share on other sites

I've got a theory about why it's throwing that error but I need to test it. Give me 5-10min.

Share this post


Link to post
Share on other sites

Found where things are going wrong.
""" if (!([str(_value)] call TON_fnc_isnumber)) exitWith {hint localize "STR_ATM_notnumeric"}; """

...That's as far as I've been able to get. You can try commenting out that line and seeing if it works correctly.

Share this post


Link to post
Share on other sites

I'll give that a try and see what happens, cause I typer in alphabet soup and it just treats it as a decimal or end of string.... so....

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...