Jump to content

Error


Carlossg

Recommended Posts

Posted
    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'

Posted

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.

Posted

Meta:

<meta> 
<info author="~KaRLoS~" name="Camera" version="1" type="script"/> 
<script src="camera.lua" type="server"/> 
  
</meta>  

I'm trying to use this whit race.

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