The online racing simulator
#1 - xxx
GetLapperVar("numconns") bug.
Hello, I found bug when I used; GetLapperVar("numconns")

My Code:

CatchEvent OnConnect( $userName )
Privmsg("".GetLapperVar("numconns"));
EndCatchEvent

when I started lfslapper and join to the server I have message: (1) (with out host)
when I in the server and do !reload I have message: (2) (with host)


and this numplayers //Number of players are OnNewPlayerJoin to the server
thanks.
Thanks for the report, will look into it when i have time.
I have tested those lappervars , but it seems that they are working as it should be.
See below on the various ways i have tested these Lappervars:
The server is empty while doing the tests below.

NumConns:

-Left the server, started lapper, joined the server: Numconns = 2 (Include host)
-Joined the server and rebooted lapper, Numconns = 2.


NumPlayers: Numplayers is the amount of Players driving on the track. So Spectators doesnt count.

-Spectated: NumPlayers = 0.
-Spectated and rebooted lapper: NumPlayers = 0.
-Joined the track: NumPlayers = 1.
-Joined the track and rebooted Lapper: NumPlayers = 1.


FGED GREDG RDFGDR GSFDG