whitevo
Feeling good, thats what I do.
Im trying to compare same positions, but they are both required differently.
When i use the metaValue (not sure is it called like that, if not, let me know, what is the name of that term)
this is part of how i generated Location1
here i compare Location1 with Location 2
problem is.. Even though i know the player is in the same position i generated and named Location1. The location metaValue Does not match.
The closest print value is: 0x0204f4d0 == 0x0204f388
Do i have to open up tables separately and compare X and Y values?
or there is better way to compare these values?
or getPosition is taking a little too much unneeded information i have to strip off somehow?
currently using this solution to compare values
When i use the metaValue (not sure is it called like that, if not, let me know, what is the name of that term)
this is part of how i generated Location1
Code:
for x = 674, 681 do
for y = 554, 563 do
local tempPos = {x=x, y=y, z=9}
table.insert(pos, tempPos)
here i compare Location1 with Location 2
Code:
for i = 1, #players do
local tempPos = players[i]:getPosition()
for a=1, #pos do
print(tostring(tempPos).." == "..tostring(pos[a]))
The closest print value is: 0x0204f4d0 == 0x0204f388
Do i have to open up tables separately and compare X and Y values?
or there is better way to compare these values?
or getPosition is taking a little too much unneeded information i have to strip off somehow?
currently using this solution to compare values
Code:
for i = 1, #players do
local tempPos = players[i]:getPosition()
for a=1, #pos do
--print(tempPos.x.." "..tempPos.y.." == "..pos[a].x.." "..pos[a].y)
if pos[a].x == tempPos.x and tempPos.y == pos[a].y then
Last edited: