Tech Lounge > General

Lua

<< < (3/3)

¦FlapJack¦:
Ruben, why are you making a table every time the command gets used? Its just adding more to what needs to be collected when its out of scope.


I reckon I've got OCD with tabbing too. Your tabbing makes me want to fix it...

Ruben:
lol my mistake, just need to take out the table out the function. I'm agree with that.

Anyway do w/e you want, every people work in their own way so... idk.

if you don't like it I'm sooooooooooooo sorry :). Luck with OCD xD.

xxMingebaggerxx:
I kan c u luben.. xD

=-Mastgrr-=:
Look at my fail lua !!


--- Code: ---function Fail(F)

if a[1] then Fail
if a[1] > 0 && a[1] <= 3 then
p:EmitSound(Fail, 70, 100)
else
p:FailMessage( HUD_PRINTTALK, "You Have Written an Incorrect Sound Please try another" )
end
else fail
p:PrintMessage( HUD_PRINTTALK, "Fail" )
end
end
fail
concommand.Add("rp_playfail", Fail)

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version