Jump to content

Error


Carlossg

Recommended Posts

    addEventHandler ( "onPlayerJoin", root, 
        function ( ) 
            local randomPlayer = getRandomPlayer ( ) 
            local x, y, z, lx, ly, lz, wex, wey = getCameraMatrix( randomPlayer ) 
            setCameraMatrix ( source, x, y, z, lx, ly, lz, wex, wey ) 
        end 
    ) 

WARNING: [gameplay]\Camera\camera.lua:5: Bad argument @ 'setCameraMatrix'

Link to comment

I'm now trying this:

    addEventHandler ( "onPlayerJoin", root, 
        function ( ) 
            local randomPlayer = getRandomPlayer ( ) 
            if randomPlayer == source then 
            outputChatBox ( "Sorry", source) 
            else 
            outputChatBox ( "Good job") 
            end 
            setCameraTarget( source,randomPlayer) 
        end 
    ) 

But it isn't working.

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