The online racing simulator
Digital speedometer problem
Hello. https://hizliresim.com/o81ednq https://www.lfs.net/forum/thread/105857-Digital-Speedometer I added the code whose link I shared to my lfslapper.lpr file, but the active admin area is gone. I look at the line of code of the two there is catchevent onconnect... That's why I thought it was and added it in the same line. My explanation may be complicated, but I tried every way, the speedometer did not work. Last time, I created and ran an lpr file called speedtest in the includes location, but this time it shows active admins but the speedometer does not work. Can you help me? Where am I making a mistake?
Without being able to look at your code, we can only take stab in the dark about what is going wrong.
Edit your question and add the code, so it can be checked.
Quote from Yisc[NL :;2065081"]Without being able to look at your code, we can only take stab in the dark about what is going wrong.
Edit your question and add the code, so it can be checked.

CatchEvent OnConnect( $userName ) # Player event
privDelayedCommand( 1, speed);
EndCatchEvent

Sub speed( $KeyFlags )
$userName = GetCurrentPlayerVar( "UserName" );
IF ( GetCurrentPlayerVar( "InstantSpeed" ) == 0.03 )
THEN
openPrivButton( "speed",50,194,20,6,4,-1,37,"^20 ^7Km/h","");
ELSE
openPrivButton( "speed",50,194,20,6,4,-1,37,"^2". Round(GetPlayerVar($userName,"InstantSpeed"),0). " ^7Km/h","");
ENDIF
privDelayedCommand( 0, speed );
EndSub
This: privDelayedCommand( 0, speed );
Should be: privDelayedCommand( 1, speed );

The number is the amount of seconds before an event is run again.
With it being at 0, it will never execute after the first run.

There might be an issue with this as well: IF ( GetCurrentPlayerVar( "InstantSpeed" ) == 0.03 )

But since I am not at home right now, I cannot check that.
This thread is closed

FGED GREDG RDFGDR GSFDG