So I’m currently working on a new Map for CSGO and I wanted to ask if someone could help me fixing a problem.
I wanted to make a working counter with seconds, milliseconds, centiseconds and deciseconds.
For the script I’ve copied the existing one from the training map (which goes from seconds to milliseconds) and modified it.
And here is the part where I’m getting problems because currently centiseconds and deciseconds
are skipping 1 point this means they both cycle 0,2,4,6,8,0 and not 0,1,2,3,4,5,6,7,8,9,0.
Below you can see the only part which I modified inside the script.
if ( m_nNumDigits > 3 )
local nMilliseconds2 = floor((m_nDisplayTime4) % 10);
local nMilliseconds1 = floor((m_nDisplayTime2) % 10) * 10;
local nMilliseconds = floor(m_nDisplayTime % 10) * 100;
local nSeconds = floor((m_nDisplayTime/10) % 10) * 1000;
local nMinutes = floor((m_nDisplayTime/100) % 10) * 10000;
local nHours = floor((m_nDisplayTime/1000) % 10) * 100000;
nTempDisplay = nHours + nMinutes + nSeconds + nMilliseconds + nMilliseconds1 + nMilliseconds2; //printl("Displaying " + nHours + ":" + nMinutes + ":" + nSeconds + ":" + nMilliseconds + ":" + nMilliseconds1) }
If needed I can upload the whole script.