no sry it doesnt work.
but ill give u the code of the whole sub.
privMsg("User:" . $userName); is just testing if he tokes the right username
Sub Userinfopanel( $KeyFlags,$userName)
$currPly = getPlayerInfo( $userName );
License ( $currPly );
Pointstogo ( $currPly );
privMsg("User:" . $userName);
openPrivButton( "uibgd",74,$UI_HT-1,52,94,5,-1,32, "");
openPrivButton( "uiname",75,$UI_HT,50,5,5,-1,32, $currPly["NickName"] . " ^7( ^8" . $currPly["UserName"] . " ^7)" );
openPrivButton( "uia1",75,$UI_HT+6,50,5,5,-1,80, "^7Current Car: ^2" . $currPly[Car]);
openPrivButton( "uia2",75,$UI_HT+11,50,5,5,-1,80, "^7Laps (" . $currPly[Car] . "/" . getLapperVar( "ShortTrackName" ) . "): ^2" .$currPly[LapsDone]);
openPrivButton( "uia3",75,$UI_HT+16,50,5,5,-1,80, "^7Driven Distance (" . $currPly[Car] . "/" . getLapperVar( "ShortTrackName" ) . "): ^2" . $currPly[Dist] ." km" );
openPrivButton( "uia4",75,$UI_HT+21,50,5,5,-1,80, "^7Total Distance: ^2" . Round(ToNum($currPly[totaldistance] / 1000),1) . " km");
openPrivButton( "uia5",75,$UI_HT+26,50,5,5,-1,80, "^7Current Distance: ^2" . Round(ToNum($currPly[TotDistMeter] / 1000),1) . " km");
openPrivButton( "uia6",75,$UI_HT+31,50,5,5,-1,80, "^7Split 1: ^2" . NumToMSH( GetCurrentPlayerVar("SectorSplit1")));
openPrivButton( "uia7",75,$UI_HT+36,50,5,5,-1,80, "^7Split 2: ^2" . NumToMSH( GetCurrentPlayerVar("SectorSplit2")));
openPrivButton( "uia8",75,$UI_HT+41,50,5,5,-1,80, "^7Split 3: ^2" . NumToMSH( GetCurrentPlayerVar("SectorSplit3")));
openPrivButton( "uia9",75,$UI_HT+46,50,5,5,-1,80, "^7Split Last: ^2" . NumToMSH( GetCurrentPlayerVar("SectorSplitLast")));
openPrivButton( "uia10",75,$UI_HT+51,50,5,5,-1,80, "^7PB (" . $currPly[Car] . "/" . getLapperVar( "ShortTrackName" ) . "): ^2" . NumToMSH($currPly[PBLapTime]));
openPrivButton( "uia11",75,$UI_HT+56,50,5,5,-1,80, "^7Max Speed: ^2" . $currPly[BestSpeed] ."^7 ". $currPly[UnitSpeed]);
openPrivButton( "uia12",75,$UI_HT+61,50,5,5,-1,80, "^7Avg Speed: ^2". ToPlayerUnit( GetCurrentPlayerVar("AvgSpeed")) ."^7 ". GetCurrentPlayerVar("UnitSpeed"));
openPrivButton( "uia13",75,$UI_HT+66,50,5,5,-1,80, "^7DriftPoints: ^2" . $currPly[DriftScore]);
openPrivButton( "uia14",75,$UI_HT+71,50,5,5,-1,80, "^7RaceLicense: ^2" . $currPly[license]);
openPrivButton( "uia15",75,$UI_HT+76,50,5,5,-1,80, "^7License Points: ^2" . $currPly[ps_points_total]);
openPrivButton( "uia16",75,$UI_HT+81,50,5,5,-1,80, "^7Points TOGO: ^2" . $currPly[ps_points_togo]);
openPrivButton( "uiclose",75,$UI_HT+87,50,5,5,-1,32, "^3CLOSE" ,Userinfoclose );
openPrivButton( "uibgd1",42,$UI_HT-1,32,94,5,-1,32, "");
openPrivButton( "uititle",43,$UI_HT,30,5,5,-1,32, "^3Users:");
$UI_HT1=46;
FOR ($i=1;$i<=40;$i=$i+1)
IF ($driverarray[$i,1] == "")
THEN
$driverarray[$i,1] = GetCurrentPlayerVar( "UserName" );
$UI_HT1=$UI_HT1+4;
openPrivButton($driverarray[$i,1],43,$UI_HT1,30,4,5,-1,32,GetCurrentPlayerVar( "NickName") ,Userinfopanel);
ENDIF
ENDFOR
EndSub