OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: MRsteve on 21 Mar 2005, 15:42:32
-
Hello good people!
Ok I'm hoping to pass two numerical variables to a dialog(ue) text box, is this possible?
If not could I achieve the same by having sliders to recieve the numbers?
Thanks all
Steve
Ps: BTW: For those who dont know PLANCK is a god and his unexhaustable patience with modding noobs like me is unparalled......Do OFPEC give out medals?
???
-
ill assume you have a ctrl with idc 100,
_somenumber = 100
ctrlSetText [100,format ["%1",_somenumber]
or a slider
sliderSetRange [100, 0, _somenumber]
-
THANKYOU!!!!
_somenumber = 100
ctrlSetText [100,format ["%1",_somenumber]]
It needed the extra bracket at end, but apart from that works a dream.
Keep it "green" soldier and thanks again
Steve
;D
EDIT: The forum wont show two brackets together so I imagine you did type it right first time round.