Hugo_Almeidowski Posted January 23, 2019 Share Posted January 23, 2019 function coordenadas (player) local coordenadas = getElementPosition(player) outputChatBox("Estás nas coordenadas " .. coordenadas, player) end addCommandHandler("coordenadas", coordenadas) I want the code to send me a message with the three coordinates I'm in after I type /coordenadas, but it only tells me one coordinate. What's wrong? Link to comment
Zorgman Posted January 23, 2019 Share Posted January 23, 2019 local x,y,z = getElementPosition(player) outputChatBox("Estás nas coordenadas "..x..", "..y..", "..z, player) 2 Link to comment
Hugo_Almeidowski Posted January 23, 2019 Author Share Posted January 23, 2019 54 minutes ago, Zorgman said: local x,y,z = getElementPosition(player) outputChatBox("Estás nas coordenadas "..x..", "..y..", "..z, player) Thank you very much! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now