zeppo Posted April 28, 2015 Report Share Posted April 28, 2015 My money works fine but the bank dosent show, any idea? disableSerialization; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; Money = player getVariable["cashMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/>", [Money] call BIS_fnc_numberText]; Bank = player getVariable["bankMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Bank.paa'/>", [bankMoney] call BIS_fnc_numberText]; _vitals ctrlCommit 0; sleep 1.5; }; Link to comment Share on other sites More sharing options...
0 Gr8 Posted April 28, 2015 Report Share Posted April 28, 2015 Are you using 3.0 SC? Link to comment Share on other sites More sharing options...
0 Mikeeeyy Posted April 28, 2015 Report Share Posted April 28, 2015 My money works fine but the bank dosent show, any idea? disableSerialization; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; Money = player getVariable["cashMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/>", [Money] call BIS_fnc_numberText]; Bank = player getVariable["bankMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Bank.paa'/>", [bankMoney] call BIS_fnc_numberText]; _vitals ctrlCommit 0; sleep 1.5; }; disableSerialization; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; Money = player getVariable["cashMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/>", [Money] call BIS_fnc_numberText]; /*#########Bank#########*/ = player getVariable["bankMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Bank.paa'/>", [/*#########bankMoney#########*/] call BIS_fnc_numberText]; _vitals ctrlCommit 0; sleep 1.5; }; You may also want to keep those variables private. Link to comment Share on other sites More sharing options...
0 Buck0 Posted April 28, 2015 Report Share Posted April 28, 2015 They look like the default variables lol, id bet 90% of servers are still running them Link to comment Share on other sites More sharing options...
0 Mikeeeyy Posted April 28, 2015 Report Share Posted April 28, 2015 They look like the default variables lol, id bet 90% of servers are still running them I meant private within the script, like _cashMoney lol. Gr8 1 Link to comment Share on other sites More sharing options...
0 Buck0 Posted April 29, 2015 Report Share Posted April 29, 2015 Oh i assume he had done that as it looks like a portion of ththe script at a glance, in any case i always change variable names, i assumed everyone did? Lol Link to comment Share on other sites More sharing options...
0 zeppo Posted April 29, 2015 Author Report Share Posted April 29, 2015 disableSerialization; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; Money = player getVariable["cashMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/>", [Money] call BIS_fnc_numberText]; /*#########Bank#########*/ = player getVariable["bankMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Bank.paa'/>", [/*#########bankMoney#########*/] call BIS_fnc_numberText]; _vitals ctrlCommit 0; sleep 1.5; }; Dident work, the problem is that the coins and the icon for it shows but not the bank icon and the bank money. Link to comment Share on other sites More sharing options...
0 Gr8 Posted April 29, 2015 Report Share Posted April 29, 2015 changing variables does nothing to solve this issue. Both local and global variable can work here. Does the icon not show or the number? Link to comment Share on other sites More sharing options...
0 Mikeeeyy Posted April 29, 2015 Report Share Posted April 29, 2015 If you look he named the variable one thing but used a different name for fetching it, I was just suggesting it would be better to keep it local. Link to comment Share on other sites More sharing options...
0 zeppo Posted April 30, 2015 Author Report Share Posted April 30, 2015 changing variables does nothing to solve this issue. Both local and global variable can work here. Does the icon not show or the number? Only my money icon and the money, not the bank icon and the bank money. Link to comment Share on other sites More sharing options...
0 Gr8 Posted May 1, 2015 Report Share Posted May 1, 2015 use this : disableSerialization; while {true} do { 1000 cutRsc ["AsReMixhud","PLAIN"]; _wpui = uiNameSpace getVariable "AsReMixhud"; _vitals = _wpui displayCtrl 4900; _Money = player getVariable["cashMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Money.paa'/>", [_Money] call BIS_fnc_numberText]; _Bank = player getVariable["bankMoney",0]; _vitals ctrlSetStructuredText parseText format [" <t size='0.9'> %1 </t><img size='0.9' align='right' image='Scripts\Player_Hud\icons\Bank.paa'/>", [_Bank] call BIS_fnc_numberText]; _vitals ctrlCommit 0; sleep 1.5; }; Link to comment Share on other sites More sharing options...
Question
zeppo
My money works fine but the bank dosent show, any idea?
Link to comment
Share on other sites
10 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now