Posted 17 July 2017 - 02:53 AM
How will I define a functions parameter like we do in JavaScript, php, cSharp, etc
For example in javascript:
But whenever I try to do something similar in Lua it crashes with:
What I did was:
What am I doing wrong?
For example in javascript:
function name (param1, param2 = true) {
// Do something
}
But whenever I try to do something similar in Lua it crashes with:
bios.lua:14: [string "require.lua"]:1: ')' expected
What I did was:
function require (mod, useExtension = true)
What am I doing wrong?