yes nigga’s I post a lot.
So guys I have been having a lot of trouble creating custom code in GLua. Mainly because I just don’t get function parameters.
Let me give you guys an example:
-- add all elements of array `a' function add (a) local sum = 0 for i,v in ipairs(a) do sum = sum + v end return sum end
– Source: http://www.lua.org/pil/5.html
So, I just don’t understand what the “a” is in the parenthesis is… I mean can it be anything? Like can:
function ass (ply) print(ply.. "is gay.") end
function ass (myfingeredbutthole) print(myfingeredbutthole.. "is gay.") end
And if so, HOW?! I mean I’m just so confused. Can someone help me?