Jump to content

[Fixed] Bank system giving "Any Zupa Coins"


Recommended Posts

Dear friends,

 

I'm in a need of some help. Earlier today I've installed Zupa coin system. Everything works great except the GUI of the banking system. 

When I interact with "Bank ATM" option it pops up the Bank window and it doesn't show the amount of coins it just says "Any Zupa Coins".

 

The player HUD gives the right information, while the bank system doesn't.

Thanks for the help!

 

Link to comment
Share on other sites

So just an quick update! The database works, but still no "Any Zupa Coins" in bank dialog window. I can buy at the traders with coins and everything.

But again, the prices at the traders show: "Any Zupa Coins". Trading and everything works. Just those 2 things won't work. I'm running 1.1 (999).

Link to comment
Share on other sites

I updated to Souls 2.0

 

His hud now doesn't work anymore. It doesn't connect to the database.

The default one from 1.1 does work.

 

 

/* 
Author : AsReMixhud
Edited By : Peter Beer
Credit : AsReMixhud , Zupa
*/

disableSerialization;

AsReMixhud_Control = true;

while {true} do
{
    1000 cutRsc ["AsReMixhud","PLAIN"];
    _wpui = uiNameSpace getVariable "AsReMixhud";
    _vitals = _wpui displayCtrl 4900;
_Player = player;

AsReMixhud_zombieKills  =     _Player getVariable["zombieKills",0];
AsReMixhud_headshots  =     _Player getVariable["cashMoney",0];
AsReMixhud_killsH   =     _Player getVariable["humanKills",0];
    Bank_Balance           =     _Player getVariable["bankMoney",0];
AsReMixhud_killsB   =     _Player getVariable["banditKills",0];
AsReMixhud_humanity   =     _Player getVariable["humanity",0];
AsReMixhud_blood   =     _Player getVariable["USEC_BloodQty",12000];
AsReMixhud_fps    =     (round diag_fps);
AsReMixhud_svrname  =     "Amnesia";
AsReMixhud_Players  =     {isPlayer _x} count _players;

_players = [];
    {
        _y = _x;
        if (isPlayer _y) then
            {
                {_players = _players + [_x];} forEach (crew _y);
            };
    } forEach ([0,0,0] nearEntities ['AllVehicles', 10000000]);

_stime = 0;
if(serverTime > 36000)then{_stime = time;}else{_stime = serverTime;};
_hours = (_stime/60/60);
_hours = toArray (str _hours);
_hours resize 1;
_hours = toString _hours;
_hours = compile _hours;
_hours = call  _hours;
_minutes = floor(_stime/60);
_minutes2 = ((_minutes - (_hours*60)) min 60) max 0;if (_minutes2 < 10) then {_minutes2 = format ['0%1',_minutes2];};

if(AsReMixhud_humanity >= 5000) then { AsReMixhud_hmnicon = "<img size='0.9' image='addons\playerhud\icons\HeroHumanity.paa'/>"; };
if((AsReMixhud_humanity >= 200) && (AsReMixhud_humanity <= 4999)) then { AsReMixhud_hmnicon = "<img size='0.9' image='addons\playerhud\icons\CivHumanity.paa'/>"; };
if(AsReMixhud_humanity <= 199) then { AsReMixhud_hmnicon = "<img size='0.9' image='addons\playerhud\icons\BanditHumanity.paa'/>"; };

_vitals ctrlSetStructuredText parseText format ["
<t size='0.8' align='right'>~~~~~ Stats ~~~~~</t><br/>
<t size='0.9'> %1 </t><img size='0.9' align='right' image='addons\playerhud\icons\Players.paa'/><br/>
<t size='0.9'> %2 </t><img size='0.9' align='right' image='addons\playerhud\icons\Health.paa'/><br/>
<t size='0.9'> %2 %3 </t><br/>
<t size='0.9'> £%4 </t><img size='0.9' align='right' image='addons\playerhud\icons\Money.paa'/><br/>
<t size='0.9'> £%5 </t><img size='0.9' align='right' image='addons\playerhud\icons\Bank.paa'/><br/>
<t size='0.9'> %6 </t><img size='0.9' align='right' image='addons\playerhud\icons\HeroKills.paa'/><br/>
<t size='0.9'> %7 </t><img size='0.9' align='right' image='addons\playerhud\icons\BanditKills.paa'/><br/>
<t size='0.9'> %8 </t><img size='0.9' align='right' image='addons\playerhud\icons\ZombieKills.paa'/><br/>
<t size='0.9'> %9h %10min </t><img size='0.9' align='right' image='addons\playerhud\icons\Uptime.paa'/><br/>
<t size='0.9'> %12 </t><img size='0.9' align='right' image='addons\playerhud\icons\Fps.paa'/><br/>
<t size='0.8' align='right'>~~~~~~~~~~~~~~~~~</t><br/>",
AsReMixhud_Players,
AsReMixhud_blood,
[AsReMixhud_humanity] call BIS_fnc_numberText,
AsReMixhud_hmnicon,
[AsReMixhud_headshots] call BIS_fnc_numberText,
[bank_Balance] call BIS_fnc_numberText,
AsReMixhud_killsH,
AsReMixhud_killsB,
AsReMixhud_zombiekills,
_hours,
_minutes2,
AsReMixhud_fps
];
_vitals ctrlCommit 0;
    sleep 1.5;
};

Link to comment
Share on other sites

I mean not playerHud.sqf. My bad. I wanted to see your gold/init.sqf.

 

Are you sure you have these functions in your compiles.sqf? :

BIS_fnc_numberDigits    = compile preprocessFileLineNumbers "custom\numberDigits.sqf";
BIS_fnc_numberText      = compile preprocessFileLineNumbers "custom\numberText.sqf";

And those files actually exist in the given paths? (Might be different paths for you)

Link to comment
Share on other sites

I mean not playerHud.sqf. My bad. I wanted to see your gold/init.sqf.

 

Are you sure you have these functions in your compiles.sqf? :

BIS_fnc_numberDigits    = compile preprocessFileLineNumbers "custom\numberDigits.sqf";
BIS_fnc_numberText      = compile preprocessFileLineNumbers "custom\numberText.sqf";

And those files actually exist in the given paths? (Might be different paths for you)

I've found out that 5mins before you posted this! That was the problem, in the original 1.1 tutorial that doesn't seem to be stated.

That was the problem.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...