This timer are broken "Gmod 13 update".
Pointshop:
[CODE]timer.Create("PointShop_" .. player:UniqueID(), 60 * 1, 0, function(player) (player:GiveScrapMetal(20, 30 .. " minutes on server"))end, player)[/CODE]
Taser:
[CODE]timer.Simple(0.3, function(wep) if wep:IsValid() then wep:SetWeaponHoldType("normal")end end)[/CODE]
EMP:
[CODE]timer.Create("timer1", 10, 1, self.retrieve, self, eyetrace)[/CODE]
i tried many times to fix it but it wont work pls help.
Fixes from garrys newman:
[URL="https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA/edit?pli=1"]https://docs.google.com/document/d/1khSuIYrAMkqXu7wlH5YRJNwz6hOH6Xqi5lqBhE3x6gA/edit?pli=1[/URL]
[lua]
timer.Create("PointShop_" .. player:UniqueID(), 60 * 1, 0, function() player:GiveScrapMetal(20, 30 .. " minutes on server") end)
timer.Simple(0.3, function() if self:IsValid() then self:SetWeaponHoldType("normal") end end)
timer.Create("timer1", 10, 1, function() self:retrieve( eyetrace ) end)[/lua]
Yea it works great thanks a lot but i got 2 more :pwn:
[CODE]timer.Create("revivedelay"..taseruniquetimer1, 10, 1, self.taserevive, self, rag )[/CODE]
[CODE]timer.Create("pauseplayer"..taseruniquetimer2, 3, 1, self.pauseplayer, self, ent.taseredply) [/CODE]
You missed the end's
[lua]timer.Create("revivedelay"..taseruniquetimer1, 10, 1, function() self:taserevive(rag) end)
timer.Create("pauseplayer"..taseruniquetimer2, 3, 1, function() self:pauseplayer(ent.taseredply) end)[/lua]
[editline]31st October 2012[/editline]
Also, if you are porting what I think you are porting, that stupid taser SWEP, its buggier than its worth (gets players stuck as ragdolls like half of the time)
ye sorry about the ends XD
[editline]31st October 2012[/editline]
i wasnt really concerned. if he cant figure out what to change after 3 timers he shouldnt be coding and should go learn
Thanks alot all works great you are the best (=
CLOSE PLS
Sorry, you need to Log In to post a reply to this thread.