Jump to content

CreateRadarArea - sizeX, sizeY


BriGhtx3

Recommended Posts

Posted

Hey,

I try to create an area on the map so I use createRadarArea.

Now I have the positions X,Y,X2,Y2 in my MySQL table and want to create it:

uv72qcqm.png

grX = math.abs(x-x2) 
    grY = math.abs(y-y2) 
areaID[i] = createRadarArea ( x,y, grX, grY, 0, 0, 0, 0 ) 

This is how I calculate the sizeX and sizeY, but the area is created to the wrong side (x,y is right)...

Posted

If the positions are in MySQL then your going to need to get them using:

dbConnect() 
dbPoll 
--and 
dbQuery 

after getting the results, use

dbFree 

to disconnect from the MySQL.

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...