Jump to content

[HELP] CAN'T COMPARE ELEMENT POSITION!


Recommended Posts

Im trying to compare a element position with this code:

function verificar2 ()
	x, y, z = getElementPosition( robmarker1 )
	if x == 3099.97 and y == -3281.69 and z == -0.5 then
		outputChatBox("Esta loja ainda está recuperando-se de um assalto!", l_5_0, 0, 255, 0)
	else
		outputChatBox("Digite /roubar para furtar a loja!", l_5_0, 0, 255, 255)
	end
end

But she only do the else. The marker is in the correct position and the script do the else. Why?

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