Here is my code:
function groupTextUpdate() if group[i].amountText.width \> maxWidthForMaara then group[i].amountText.xScale = group[i].amountText.xScale / group[i].amountText.width \* maxWidthForMaara group[i].amountText.yScale = group[i].amountText.yScale / group[i].amountText.width \* maxWidthForMaara maxWidthForMaara = group[i].amountText.width end if group[i].costText.width \> maxWidthForMaara then group[i].costText.xScale = group[i].costText.xScale / group[i].costText.width \* maxWidthForMaara group[i].costText.yScale = group[i].costText.yScale / group[i].costText.width \* maxWidthForMaara maxWidthForMaara = group[i].costText.width end group[i].amountText.text = "["..comma\_value(settings.m.group[i].amount).."]" group[i].costText.text = ""..translations["SHORT\_K"][settings.m.language].." "..comma\_value(settings.m.group[i].cost).."" end groupTextUpdate()
Is there anything wrong with it because this is what I get in the simulator:
I do not get any errors though.
See that, it goes over the border. Can you all help me?