• Silverlans SWEPS AMMO Problem
    4 replies, posted
Bullets, Ammo Count, Reload Sound and Bullet Tracers are not working with Silverlans TF2 sweps except for the Mini-Gun I'll Get The Error Loaded up in a minute *Edit* Here is the Error (autorun/tf_modulus_ammo_ext.lua:35: attempt to call method 'SetCustomAmmo' (a nil value))
Is anyone else getting this problem? 'Cause im going to assume the stunned silence is an indicator that you may have installed it wrong or something? Im just saying..
I dropped the team-fortress folder into addons... *Update* Here Is The Error Again And The Lua Document ERROR: (autorun/tf_modulus_ammo_ext.lua:35: attempt to call method 'SetCustomAmmo' (a nil value)) The Lua File: //---------- Client Files if( SERVER ) then // include AddCSLuaFile( "tf_modulus_ammo_ext.lua" ); end //---------- Ammo Extension local meta = FindMetaTable( "Weapon" ); if( !meta ) then return; end /*------------------------------------ GetPrimaryAmmo ------------------------------------*/ function meta:GetPrimaryAmmo( ) return self:GetNetworkedInt( "ammo_" .. self.Primary.Ammo ); end /*------------------------------------ SetPrimaryAmmo ------------------------------------*/ function meta:SetPrimaryAmmo( num ) return self:SetNetworkedInt( "ammo_" .. self.Primary.Ammo, num ); end /*------------------------------------ AddPrimaryAmmo ------------------------------------*/ function meta:AddPrimaryAmmo( num ) return self:SetCustomAmmo( self.Primary.Ammo, self:GetPrimaryAmmo( self.Primary.Ammo ) + num ); end /*------------------------------------ GetSecondaryAmmo ------------------------------------*/ function meta:GetSecondaryAmmo( ) return self:GetNetworkedInt( "ammo_" .. self.Secondary.Ammo ); end /*------------------------------------ SetSecondaryAmmo ------------------------------------*/ function meta:SetSecondaryAmmo( num ) return self:SetNetworkedInt( "ammo_" .. self.Secondary.Ammo, num ); end /*------------------------------------ AddSecondaryAmmo ------------------------------------*/ function meta:AddSecondaryAmmo( num ) return self:SetCustomAmmo( self.Secondary.Ammo, self:GetSecondaryAmmo( self.Secondary.Ammo ) + num ); end //---------- Ammo Extension local meta = FindMetaTable( "Player" ); if( !meta ) then return; end /*------------------------------------ GetCustomAmmo ------------------------------------*/ function meta:GetCustomAmmo( name ) return self:GetNetworkedInt( "ammo_" .. name ); end /*------------------------------------ SetCustomAmmo ------------------------------------*/ function meta:SetCustomAmmo( name, num ) return self:SetNetworkedInt( "ammo_" .. name, num ); end /*------------------------------------ AddCustomAmmo ------------------------------------*/ function meta:AddCustomAmmo( name, num ) return self:SetCustomAmmo( name, self:GetCustomAmmo( name ) + num ); end
Is the error blue?
[QUOTE=ralle105;19690522]Is the error blue?[/QUOTE] Indeedy it is
Sorry, you need to Log In to post a reply to this thread.