• Why that's give me an error?
    2 replies, posted
I downloaded one addon of a invisible gun for TTT, but i don't know how make it automatically desactive in 15 seconds, i try to make this code but give me this error. [QUOTE][TTT - Cloaking Device] gamemodes/terrortown/entities/weapons/weapon_ttt_cloak/shared.lua:96: function arguments expected near '<eof>' [/QUOTE] And that's the code, only i added the timer: [QUOTE]function SWEP:Cloak() self.Owner:SetColor( Color(255, 255, 255, 3) ) self.Owner:SetMaterial( "sprites/heatwave" ) -- self.Weapon:SetMaterial("sprites/heatwave") self:EmitSound( "AlyxEMP.Charge" ) self.Owner:DrawWorldModel( false ) self.conceal = true Timer.Simple( 10, UnCloak() ) end[/QUOTE] And the other function: [QUOTE]function SWEP:UnCloak()[/QUOTE]
Timer.Simple( 10, UnCloak() ) replace with timer.Simple( 10, UnCloak )
[QUOTE][TTT - Cloaking Device] gamemodes/terrortown/entities/weapons/weapon_ttt_cloak/shared.lua:96: unexpected symbol near '<eof>' 1. unknown - gamemodes/terrortown/entities/weapons/weapon_ttt_cloak/shared.lua:0 [/QUOTE] [editline]16th July 2014[/editline] Need help urgency.
Sorry, you need to Log In to post a reply to this thread.