RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
initSer returns true/false
Author Message
Reply with quote
Post initSer returns true/false 
the wiki doc:
https://wiki.autosportlabs.com/RaceCapturePro_Lua_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.

View user's profile Send private message
Reply with quote
Post  
thanks for the note, we will fix the documentation - and sorry for the inconvenience!


_________________
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum