Page 1 of 1

MM 103 issue?

Posted: Mon Apr 01, 2013 7:35 pm
by Cindy
A script that works fine in 102 gives the following error:

Did not find any crashed game clients.
7:27pm - [string "..."]:64: attempt to call field 'mod' (a nil value)


Any suggestions on what causes this?

Re: MM 103 issue?

Posted: Mon Apr 01, 2013 9:07 pm
by lisa
change it to .fmod

lua 5.2 doesn't support .mod but you can use .fmod instead which basically does the same thing.

I am guessing you mean cot_tele

change

Code: Select all

local ss = string.format("%02s", math.floor(math.mod(secondsleft, 60)))
to

Code: Select all

local ss = string.format("%02s", math.floor(math.fmod(secondsleft, 60)))

Re: MM 103 issue?

Posted: Wed Apr 03, 2013 5:51 pm
by Cindy
Bingo! thanks Lisa