<?php

$X1=10;

$Y1=10;

$X2=GetPlayerVar( "lexanom", "X" );

$Y2=GetPlayerVar( "lexanom", "Y" );

$distX = ToNum( $X1 - $X2 );

$distY = ToNum( $Y1 - $Y2 );

$dist = (($distX*$distX) + ($distY*$distY))^(1/2) ;

openGlobalButton( "dst_",75,0,50,10,1,-1,0,strFormat( "^0distance: {0:F3} m", $dist ) );

?>

distance: 171925

<?php

$X1=10;

$Y1=10;

$X2=GetPlayerVar( "lexanom", "X" );

$Y2=GetPlayerVar( "lexanom", "Y" );

$distX = ToNum( $X1 - $X2 );

$distY = ToNum( $Y1 - $Y2 );

$dist = (($distX*$distX) + ($distY*$distY)) ;

openGlobalButton( "dst_",75,0,50,10,1,-1,0,strFormat( "^0distance: {0:F3} m", $dist ) );

?>

distance: 171925

<?php

$X1=10;

$Y1=10;

$X2=GetPlayerVar( "lexanom", "X" );

$Y2=GetPlayerVar( "lexanom", "Y" );

$distX = $X1 - $X2 ;

$distY = $Y1 - $Y2 ;

$dist = (($distX*$distX) + ($distY*$distY))^(0.5) ;

openGlobalButton( "dst_",75,0,50,10,1,-1,0,strFormat( "^0distance: {0:F3} m", $dist ) );

?>

distance: 171925

<?php

$X1=10;

$Y1=10;

$X2=20;

$Y2=20;

$distX = $X1 - $X2 ;

$distY = $Y1 - $Y2 ;

$dist = (($distX*$distX) + ($distY*$distY))^(1/2) ;

openGlobalButton( "dst_",75,0,50,10,1,-1,0,strFormat( "^0distance: {0:F3} m", $dist ) );

?>

distance: 200

:something