Jump to content

Distance to the hunter.


proracer

Recommended Posts

  • Moderators
@Citizen: Text and picture is again in correct position but other people are reporting other positions and its in mess.What is wrong?

Yeah sorry, I made an error in my converter replace the old by this one:

function AbsoluteToRelativ( X, Y ) -- this coverter transforms the gui position and size for the resolution of the player  
    local rX, rY = guiGetScreenSize() 
    local x = math.floor((X/1920)*rX) 
    local y = math.floor((Y/1080)*rY) 
    return x, y  
end 

I'm sure it's works :mrgreen:

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...