Jump to content

outputChatBox ERROR!


Recommended Posts

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 by Murilo_apa
Link to comment
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
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 by Murilo_apa
Link to comment
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

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