• Players Colors [BUG]
    1 replies, posted
Hello guys, a few days ago i start having a problem with the gmod_hands.lua and i already fix it, but now i'm having a problem with this: for NON-REASON: [B][ERROR] lua/matproxy/player_color.lua:43: bad argument #2 to 'SetVector' (Vector expected, got no value) 1. SetVector - [C]:-1 2. bind - lua/matproxy/player_color.lua:43 3. unknown - lua/includes/modules/matproxy.lua:56 [/B] someone know what's going on, or someone know how to fix it ? :S here is the code of that file, maybe garrysnewman upgrade it and i didn't even know it :S [code] -- Proxy Example: -- -- Proxies -- { -- PlayerColor -- { -- resultVar $color2 -- } -- } matproxy.Add( { name = "PlayerColor", init = function( self, mat, values ) -- Store the name of the variable we want to set self.ResultTo = values.resultvar end, bind = function( self, mat, ent ) if ( !IsValid( ent ) ) then return end -- -- If entity is a ragdoll try to convert it into the player -- if ( ent:IsRagdoll() ) then ent = ent:GetRagdollOwner() if ( !IsValid( ent ) ) then return end end -- -- If the target ent has a function called GetPlayerColor then use that -- The function SHOULD return a Vector with the chosen player's colour. -- -- In sandbox this function is created as a network function, -- in player_sandbox.lua in SetupDataTables -- if ( ent.GetPlayerColor ) then mat:SetVector( self.ResultTo, ent:GetPlayerColor() ) else mat:SetVector( self.ResultTo, Vector( 62.0/255.0, 88.0/255.0, 106.0/255.0 ) ) end end }) [/code]
This is garry's fault. Probably just wait for new official update. If it kicks you out of the server just put "sv_kickerrornum 0" on your server's config file.
Sorry, you need to Log In to post a reply to this thread.