Hi Guys, 2 more questions..
1) What does the following script do as its chucking errors which I have included...
SUB PstInfo($userName)
$currPly = getPlayerInfo($userName);
if($currPly == "") THEN
WriteLine("Coucou");
RETURN();
ENDIF
openPrivButton("Back",74,58,52,64,5,-1,ISB_DARK, "");
openPrivButton("PSNickName",75,59,50,5,5,-1,ISB_DARK, $currPly["NickName"] . " ^7(" . $currPly["PSCountry"] . ")");
openPrivButton("PSDistance",75,65,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psdistance}%", strFormat("{0:0}", ToPlayerUnit($currPly["PSDistance"]/1000)),$currPly["UnitDist"]));
openPrivButton("PSFuel",75,70,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psfuel}%", strFormat("{0:0}", $currPly["PSFuel"]/1000)));
openPrivButton("PSLaps",75,75,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_pslaps}%", $currPly["PSLaps"]));
openPrivButton("PSWins",75,80,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_pswins}%", $currPly["PSWins"]));
openPrivButton("PSSecond",75,85,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_pssecond}%", $currPly["PSSecond"]));
openPrivButton("PSThird",75,90,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psthird}%", $currPly["PSThird"]));
openPrivButton("PSFinished",75,95,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psfinished}%", $currPly["PSFinished"]));
openPrivButton("PSQuals",75,100,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psquals}%", $currPly["PSQuals"]));
openPrivButton("PSPole",75,105,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_pspole}%", $currPly["PSPole"]));
openPrivButton("pstclose",75,111,50,10,5,-1,ISB_DARK, langEngine("%{main_close}%"),ClosePstInfo);
ENDSUB
SUB ClosePstInfo($KeyFlags,$id)
closePrivButton("pstclose&Back&PSNickName&PSDistance&PSFuel&PSLaps&PSWins&PSSecond&PSThird&PSFinished&PSQuals&PSPole");
ENDSUB
Error:
3/28/2019 10:46:02 PM -> Syntax error: in file ".\default\LFSLapper_1.lpr" at line #1106
'openPrivButton' parameter #7(ISB_DARK) is wrong type at line #
Function 'pstinfo' script aborted
2) Is it possible to check Drivers LFSW PB Laptime in FXR & FZR & XRR and if any of them are below a certain figure access is allowed. I have a script but $DefaultTopCar = "FXR" blocks FZR & XRR
Thanks for your help its appreciated
Andy
1) What does the following script do as its chucking errors which I have included...
SUB PstInfo($userName)
$currPly = getPlayerInfo($userName);
if($currPly == "") THEN
WriteLine("Coucou");
RETURN();
ENDIF
openPrivButton("Back",74,58,52,64,5,-1,ISB_DARK, "");
openPrivButton("PSNickName",75,59,50,5,5,-1,ISB_DARK, $currPly["NickName"] . " ^7(" . $currPly["PSCountry"] . ")");
openPrivButton("PSDistance",75,65,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psdistance}%", strFormat("{0:0}", ToPlayerUnit($currPly["PSDistance"]/1000)),$currPly["UnitDist"]));
openPrivButton("PSFuel",75,70,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psfuel}%", strFormat("{0:0}", $currPly["PSFuel"]/1000)));
openPrivButton("PSLaps",75,75,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_pslaps}%", $currPly["PSLaps"]));
openPrivButton("PSWins",75,80,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_pswins}%", $currPly["PSWins"]));
openPrivButton("PSSecond",75,85,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_pssecond}%", $currPly["PSSecond"]));
openPrivButton("PSThird",75,90,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psthird}%", $currPly["PSThird"]));
openPrivButton("PSFinished",75,95,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psfinished}%", $currPly["PSFinished"]));
openPrivButton("PSQuals",75,100,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_psquals}%", $currPly["PSQuals"]));
openPrivButton("PSPole",75,105,50,5,5,-1,ISB_LIGHT|ISB_LEFT, langEngine("%{main_pspole}%", $currPly["PSPole"]));
openPrivButton("pstclose",75,111,50,10,5,-1,ISB_DARK, langEngine("%{main_close}%"),ClosePstInfo);
ENDSUB
SUB ClosePstInfo($KeyFlags,$id)
closePrivButton("pstclose&Back&PSNickName&PSDistance&PSFuel&PSLaps&PSWins&PSSecond&PSThird&PSFinished&PSQuals&PSPole");
ENDSUB
Error:
3/28/2019 10:46:02 PM -> Syntax error: in file ".\default\LFSLapper_1.lpr" at line #1106
'openPrivButton' parameter #7(ISB_DARK) is wrong type at line #
Function 'pstinfo' script aborted
2) Is it possible to check Drivers LFSW PB Laptime in FXR & FZR & XRR and if any of them are below a certain figure access is allowed. I have a script but $DefaultTopCar = "FXR" blocks FZR & XRR
Thanks for your help its appreciated
Andy