initSer returns true/false
Posted: Mon May 20, 2019 4:01 pm
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.
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.