• Problem with a LUA code. [Please help]
    4 replies, posted
Hi everyone. I know about coderhire but a can't see a forum. //////////// My LUA code don't work. My SWEP give Health to player. (Local ent = self.Owner) I try past timer but he didn't work. Please help. I am a little bit of nooooob. :( If you need more screens, i can upload. [IMG]http://s14.postimg.org/m8hn23h9t/image.jpg[/IMG] [IMG]http://s14.postimg.org/9ftj265o1/image.jpg[/IMG] [EMAIL="developspartv@gmail.com"]developspartv@gmail.com[/EMAIL] [editline]26th November 2013[/editline] self.HealthRate = 1 [editline]26th November 2013[/editline] self.HealRate = 1 [editline]26th November 2013[/editline] self.HealRate = 1
what the fuck is StartTimer()
Idk, i read what i see in google :words:
Well first i see this syntax error, "My SWEP give Health to player. (Local ent = self.Owner)" Local is actually typed lowercase, 'local' and also i would rename the variable to some other name ent is very used already, and dont use StartTimer(), use timer.Start("name") for the gmod lua lexer and the rest its just debuggin our own, every coder has to do this so get used to it....
Luamaster, thx for gmod lexer, i don't know about it. I try use new timer and upload to this thread [editline]26th November 2013[/editline] [QUOTE=Luamaster;42983566]Well first i see this syntax error, "My SWEP give Health to player. (Local ent = self.Owner)" Local is actually typed lowercase, 'local' and also i would rename the variable to some other name ent is very used already, and dont use StartTimer(), use timer.Start("name") for the gmod lua lexer and the rest its just debuggin our own, every coder has to do this so get used to it....[/QUOTE] Luamaster, can i past Interval ( In Expression 2 i see a interval(number)?
Sorry, you need to Log In to post a reply to this thread.