I see a few mistakes and weird things in the code of the .lua script file.
First you should move the Update() function to the end of the whole code, because it has to return the value of the cperiod() function, which now is located after the Update() function. The reason why should you do this move, is the same as what SilverAzide has described about the
return cperiod() command, which should be the last in the Update() function (regardless if his idea is right or not). Right now the cperiod() function is the last one in the code, accordingly the Update() function, which precedes the cperiod() function has nothing to return (at least on the first update cycle). I'd move it as described above.
Secondly the SKIN:Bang command should have the following form:
Code: Select all
SKIN:Bang('!UpdateMeter', 'ScrollingText')
SKIN:Bang('!UpdateMeter', 'ScrollingText2')
SKIN:Bang('!UpdateMeter', 'ScrollingText3')
(note the commas between the
'!UpdateMeter' and the
'ScrollingTextX' parameters)
If these don't fixes the issues, please post again the exact code of both, the .ini and the .lua files, because you probably updated them both and additionally the posted code of the .lua file doesn't even match your other replies here.