lol i think i didnt change that from last time :S

anyways, Thanks For your help
ok i added my close feature ill be adding it to non beta tomorrow
Hi,

I cannot get the insim to connect neither do I know what things todo because I only can config the old version I would like to run this but how?
Quote from (The Stig) :Hi,

I cannot get the insim to connect neither do I know what things todo because I only can config the old version I would like to run this but how?

And you are trying to offer insim with your servers? Fail.
ok i was setting up my email but it requires a ssl connection is it possible to do this?
No
u confused me
can u do it or not
oops
Yes, but it's very hard.
If you'd only waited another hour! Or I'd been quicker?

See your original entry.

Good Luck!
Using V5.844

I was watching the F1 Grand Prix earlier, and thought I'd like to have something like the winner sign at end of race, when Kimi won.

Been playing with coding for a while, and having problems getting the winners name to appear on the button.

Main code:

Event OnResult( $flagConfirm )

# writeline ( langEngine( "%{main_on_result}%" ,GetCurrentPlayerVar("FinishedPos")));

$WinnerName = GetCurrentPlayerVar("NickName");

IF( GetCurrentPlayerVar( "FinishedPos" ) == "1" )

THEN

openGlobalButton( "winner_backing",66,136,74,34,3,10,32," ");
openGlobalButton( "number_1",67,137,10,32,3,10,16,"^01");
openGlobalButton( "winner_title",78,137,62,19,4,10,96,langEngine( "%{main_winnertitle}%" ));
openGlobalButton( "winner_name",78,158,58,10,3,10,64,langEngine( "%{main_winnername}%" ),$WinnerName);

openGlobalButton( "white_banner1",108,137,32,18,1,10,16," ");
openGlobalButton( "white_banner2",108,137,32,18,1,10,16," ");
openGlobalButton( "white_banner3",108,137,32,18,1,10,16," ");

openGlobalButton( "black_banner1",136,137,4,6,1,10,32," ");
openGlobalButton( "black_banner2",136,137,4,6,1,10,32," ");
openGlobalButton( "black_banner3",136,137,4,6,1,10,32," ");

openGlobalButton( "black_banner4",112,137,4,6,1,10,32," ");
openGlobalButton( "black_banner5",112,137,4,6,1,10,32," ");
openGlobalButton( "black_banner6",112,137,4,6,1,10,32," ");

openGlobalButton( "black_banner7",120,137,4,6,1,10,32," ");
openGlobalButton( "black_banner8",120,137,4,6,1,10,32," ");
openGlobalButton( "black_banner9",120,137,4,6,1,10,32," ");

openGlobalButton( "black_banner10",128,137,4,6,1,10,32," ");
openGlobalButton( "black_banner11",128,137,4,6,1,10,32," ");
openGlobalButton( "black_banner12",128,137,4,6,1,10,32," ");

openGlobalButton( "black_bannera",108,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerb",108,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerc",108,143,4,6,1,10,32," ");

openGlobalButton( "black_bannerd",116,143,4,6,1,10,32," ");
openGlobalButton( "black_bannere",116,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerf",116,143,4,6,1,10,32," ");

openGlobalButton( "black_bannerg",124,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerh",124,143,4,6,1,10,32," ");
openGlobalButton( "black_banneri",124,143,4,6,1,10,32," ");

openGlobalButton( "black_bannerj",132,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerk",132,143,4,6,1,10,32," ");
openGlobalButton( "black_bannerl",132,143,4,6,1,10,32," ");

openGlobalButton( "black_bannera1",136,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera2",136,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera3",136,149,4,6,1,10,32," ");

openGlobalButton( "black_bannera4",112,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera5",112,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera6",112,149,4,6,1,10,32," ");

openGlobalButton( "black_bannera7",120,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera8",120,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera9",120,149,4,6,1,10,32," ");

openGlobalButton( "black_bannera10",128,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera11",128,149,4,6,1,10,32," ");
openGlobalButton( "black_bannera12",128,149,4,6,1,10,32," ");

ENDIF

EndEvent

Lang "EN" code:

main_winnertitle = "^7Winner";
main_winnername = "^7{0}";

Tried various things, including:

IF( GetCurrentPlayerVar( "FinishedPos" ) == "1" )
THEN
$WinnerName = GetCurrentPlayerVar("NickName");
openGlobalButton( "winner_backing",66,136,74,34,3,10,32," ");

but nothing I've done will put winners name at bottom of button.

Getting frustrated.

Anyone help?

Looking at the attached photo, it looks like lapper has used my driftscore to fill in where I wanted the name.
Attached images
LFS Winner.PNG
here u go buddy

Event OnResult( $flagConfirm )

# writeline ( langEngine( "%{main_on_result}%" ,GetCurrentPlayerVar("FinishedPos")));

$WinnerName = GetCurrentPlayerVar("NickName");

IF( GetCurrentPlayerVar("FinishedPos") == "1" )

THEN

openGlobalButton( "winner_backing",66,136,74,34,3,10,32," ");
openGlobalButton( "number_1",67,137,10,32,3,10,16,"^01");
openGlobalButton( "winner_title",78,137,62,19,4,10,96,langEngine( "%{main_winnertitle}%" ));
openGlobalButton( "winner_name",78,158,58,10,3,10,64,langEngine( "%{main_winnername}%" ,$WinnerName ));

...

ENDIF

EndEvent

main_winnertitle = "^7Winner";
main_winnername = "^7{0}";

ur error was te red part the blue part is where is hould have gone

...,langEngine( "%{main_winnername}%" [COLOR="Red"])[/COLOR],$WinnerName [COLOR="Blue"])[/COLOR]);

Attached images
pic.jpg
thw who and !hc commandsarnt they sapposed to show usernames or something? mine is blank :S
Quote from Fire_optikz001 :thw who and !hc commandsarnt they sapposed to show usernames or something? mine is blank :S

Screenshots? and is there anything in the error logs?

AND do you have pitboard.lpr in the include list in lfslapper.lpr?
Attached images
pic 1.jpg
pic 2.jpg
Quote from Krayy :Screenshots? and is there anything in the error logs?

AND do you have pitboard.lpr in the include list in lfslapper.lpr?

i have pitbored on false

i just tried true and it still dont work
Quote from Fire_optikz001 :i have pitbored on false

i just tried true and it still dont work

I don't mean true or flase, I mean making sure that pitboard.lpr is included amongst these lines:
####################
#Overriding options#
####################
include( "./includes/addonsused.lpr");
include( "./includes/pitboard.lpr");
include( "./includes/pitwindow_gui.lpr");
include( "./includes/safetycar.lpr");
include( "./includes/ctrack.lpr");
include( "./includes/guiconfig.lpr");
include( "./includes/who.lpr");
include( "./includes/handicapper.lpr");
include( "./includes/myInc.lpr");

The who and hc commands use a data array in the pitboard.lpr file so it needs to be included. There is a thread re culling these out into a separate file, but until that happens, the pitboard.lpr needs to be included.
Hey guys....

how do i get the pb because i cant find a way of finding it to put into a button or anything... i guess i would have to make it or is it hidden like "getcurrentplayervar "pb""

Thanks Tur8o
Do you mean

!mypb

?
Quote from Tur8o :Hey guys....

how do i get the pb because i cant find a way of finding it to put into a button or anything... i guess i would have to make it or is it hidden like "getcurrentplayervar "pb""

Thanks Tur8o

GetCurrentPlayerVar("pblaptime") - will give you the current pb for this car/track
thanks
Hi,

Do anyone know the syntax for openprivtextbutton ? [ Problem Solved ]

The code is now OK.

openPrivTextButton( "button_ID",origL,origT,$wide_button,$hight_button,5,96,"text in chat window","Text in button",$max_lenght_of_input,Goto_this_Sub );

Sub Goto_this_Sub( $myVar )
privMsg( "$myVar = " . $myVar );
EndSub

Thanks in advance.
hi
i have a lil problem with transfer the driftbox from 5.716 to 5.845 . it doenst show the driftbox completly
can someone help me .


Event OnDriftScore()
$AngleVelocity = GetCurrentPlayerVar( "AngleVelocity" );
$DriftScore = GetCurrentPlayerVar( "DriftScore" );
$LastDriftScore = GetCurrentPlayerVar( "LastDriftScore" );
IF( $GUI_drift == "yes" )
THEN
openPrivButton( "Driftscoreboard",1,117,28,10,4,-1,16,"^0D^4R^0I^4F^0T ^4S^0C^4O^0R^4E^0B^4O^0A^4R^0D" );
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );
openPrivButton( "Score",1,132,14,5,4,-1,16,"^7 Score" );
openPrivButton( "Score1",1,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore" ) );
openPrivButton( "Angle",15,132,14,5,4,-1,16,"^7 Angle" );
openPrivButton( "Angle1",15,137,14,5,4,-1,32,"^1" . $Angle_Reverse);
openPrivButton( "TotalScore",1,142,28,5,4,-1,16,"^7 Total Score" );
openPrivButton( "TotalScore1",1,147,28,5,4,-1,32,"^1" . GetCurrentPlayerVar( "DriftScore" ) );

IF( $AngleVelocity < 0 )
THEN
SetCurrentPlayerVar("Angle_Reverse",$AngleVelocity);
openPrivButton( "Driftscoreboard",1,117,28,10,4,-1,16,"^0D^4R^0I^4F^0T ^4S^0C^4O^0R^4E^0B^4O^0A^4R^0D" );
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );
openPrivButton( "Score",1,132,14,5,4,-1,16,"^7 Score" );
openPrivButton( "Score1",1,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore") );
openPrivButton( "Angle",15,132,14,5,4,-1,16,"^7 Angle" );
openPrivButton( "Angle1",15,137,14,5,4,-1,32,"^1" . $Angle_Reverse);
openPrivButton( "TotalScore",1,142,28,5,4,-1,16,"^7 Total Score" );
openPrivButton( "TotalScore1",1,147,28,5,4,-1,32,"^1" . GetCurrentPlayerVar( "DriftScore") );
ELSE
openPrivButton( "Driftscoreboard",1,117,28,10,4,-1,16,"^0D^4R^0I^4F^0T ^4S^0C^4O^0R^4E^0B^4O^0A^4R^0D" );
openPrivButton( "Servername",1,127,28,5,4,-1,16,"^0[^7" . getLapperVar( "HostName" ) . "^0]" );
openPrivButton( "Score",1,132,14,5,4,-1,16,"^7 Score" );
openPrivButton( "Score1",1,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore" ) );
openPrivButton( "Angle",15,132,14,5,4,-1,16,"^7 Angle" );
openPrivButton( "Angle1",15,137,14,5,4,-1,32,"^1" . GetCurrentPlayerVar( "AngleVelocity" ) );
openPrivButton( "TotalScore",1,142,28,5,4,-1,16,"^7 Total Score" );
openPrivButton( "TotalScore1",1,147,28,5,4,-1,32,"^1" . GetCurrentPlayerVar( "LastDriftScore") );

ENDIF
ENDIF
EndEvent

This thread is closed

Config help
(1112 posts, closed, started )
FGED GREDG RDFGDR GSFDG