Achmed Posted September 23, 2014 Report Share Posted September 23, 2014 When the bank or coins balance is over 999,999 it gets displayed as 1e+006 on the gui and the more coins you have it changes also. is there a fix for this at all? Link to comment Share on other sites More sharing options...
Chunk. No Captain Chunk. Posted September 23, 2014 Report Share Posted September 23, 2014 When the bank or coins balance is over 999,999 it gets displayed as 1e+006 on the gui and the more coins you have it changes also. is there a fix for this at all? Link to comment Share on other sites More sharing options...
Achmed Posted September 23, 2014 Author Report Share Posted September 23, 2014 thanks for the link but im using cen's gui that i have incorporated the coins and bank balance into not the included hud from the link it looks like "call BIS_fnc_numberText" is what needs adding to fix the problem. they only down side is i dont know where to add it. this is the code i use to display the info //COINS _ctrlcoins= _display displayCtrl 1430; //BANK _ctrlbank= _display displayCtrl 1428; //COINS _ctrlcoins ctrlSetText str(player getVariable["bankMoney", 0]); //BANK _ctrlbank ctrlSetText str(player getVariable["cashMoney", 0]); would i just change it to _ctrlcoins ctrlSetText str(player getVariable["bankMoney", 0] call BIS_fnc_numberText); Link to comment Share on other sites More sharing options...
Achmed Posted September 23, 2014 Author Report Share Posted September 23, 2014 nope that didnt work :( Link to comment Share on other sites More sharing options...
Rocu Posted September 23, 2014 Report Share Posted September 23, 2014 nope that didnt work :( BIS_fnc_numberText IS the function that fixes it. Do you actually have those functions called in your compiles.sqf ? Like so: BIS_fnc_numberDigits = compile preprocessFileLineNumbers "custom\numberDigits.sqf"; BIS_fnc_numberText = compile preprocessFileLineNumbers "custom\numberText.sqf"; Link to comment Share on other sites More sharing options...
Achmed Posted September 23, 2014 Author Report Share Posted September 23, 2014 i do yes however i have moved the location of the files and updated the path accordingly //#########################SINGLE CURRENCY######################### BIS_fnc_numberDigits = compile preprocessFileLineNumbers "scripts\gold\numberDigits.sqf"; BIS_fnc_numberText = compile preprocessFileLineNumbers "scripts\gold\numberText.sqf"; //################################################################# Link to comment Share on other sites More sharing options...
Zupa Posted September 24, 2014 Report Share Posted September 24, 2014 thanks for the link but im using cen's gui that i have incorporated the coins and bank balance into not the included hud from the link it looks like "call BIS_fnc_numberText" is what needs adding to fix the problem. they only down side is i dont know where to add it. this is the code i use to display the info //COINS _ctrlcoins= _display displayCtrl 1430; //BANK _ctrlbank= _display displayCtrl 1428; //COINS _ctrlcoins ctrlSetText str(player getVariable["bankMoney", 0]); //BANK _ctrlbank ctrlSetText str(player getVariable["cashMoney", 0]); would i just change it to _ctrlcoins ctrlSetText str(player getVariable["bankMoney", 0] call BIS_fnc_numberText); _ctrlcoins ctrlSetText str( [player getVariable["bankMoney", 0]] call BIS_fnc_numberText); Link to comment Share on other sites More sharing options...
Achmed Posted September 24, 2014 Author Report Share Posted September 24, 2014 OMG i was so close as well :( thanks zupa Link to comment Share on other sites More sharing options...
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