Murilo_apa Posted November 24, 2022 Share Posted November 24, 2022 (edited) local x,y,z,lx,ly,lz = getCameraMatrix() addCommandHandler("getmatrixcam", function() outputChatBox("your position is:" ..x,y,z,lx,ly,lz.. ".") end) Does anyone know what the problem is with this code? (I am using the translator). I'm new to scripting... ERRO: Bad argument @'outputChatBox' [expected bool at argument 5, got number '-1710.618...'] Edited November 24, 2022 by Murilo_apa Link to comment
Shady1 Posted November 24, 2022 Share Posted November 24, 2022 17 minutes ago, Murilo_apa said: local x,y,z,lx,ly,lz = getCameraMatrix() addCommandHandler("getmatrixcam", function() outputChatBox("your position is:" ..x,y,z,lx,ly,lz.. ".") end) Does anyone know what the problem is with this code? (I am using the translator). I'm new to scripting... ERRO: Bad argument @'outputChatBox' [expected bool at argument 5, got number '-1710.618...'] local x,y,z,lx,ly,lz = getCameraMatrix() addCommandHandler("getmatrixcam", function() outputChatBox("your position is:" ..x,y,z,lx,ly,lz.. ".") end) try this code Link to comment
Murilo_apa Posted November 24, 2022 Author Share Posted November 24, 2022 (edited) 6 minutes ago, Shady1 said: local x,y,z,lx,ly,lz = getCameraMatrix() addCommandHandler("getmatrixcam", function() outputChatBox("your position is:" ..x,y,z,lx,ly,lz.. ".") end) try this code that didn't work, same mistake. What do i do? Edited November 24, 2022 by Murilo_apa Link to comment
Shady1 Posted November 24, 2022 Share Posted November 24, 2022 6 minutes ago, Murilo_apa said: that didn't work, same mistake. What do i do? sorry i sent the wrong code,can you test this. local x,y,z,lx,ly,lz = getCameraMatrix() addCommandHandler("getmatrixcam", function() outputChatBox("your position is:"..x..","..y..","..z..","..lx..","..ly..","..lz..".") end) Link to comment
Murilo_apa Posted November 24, 2022 Author Share Posted November 24, 2022 Man, i U, thank you!!! Link to comment
Shady1 Posted November 24, 2022 Share Posted November 24, 2022 (edited) 4 minutes ago, Murilo_apa said: Man, i U, thank you!!! @Murilo_apa If your problem is fixed, you can like the comment and if a new problem arises, open a new topic and tag me. Edited November 24, 2022 by Shady1 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