Page 1 of 1

initSer returns true/false

Posted: Mon May 20, 2019 4:01 pm
by lightningrod
the wiki doc:
https://wiki.autosportlabs.com/RaceCapt ... _Scripting

... indicates initSer returns 1 or -1, but the function actually returns true or false.
in lua: "1 ~= true"
so
if initSer( ... ) == 1 then
never gets here.

use:
if initSer( ...) then
works.

This took me way too long to figure out.

Posted: Mon May 20, 2019 5:55 pm
by brentp
thanks for the note, we will fix the documentation - and sorry for the inconvenience!