Uknown Command
#12
(05-12-2015, 07:02 AM)xoft Wrote: MCServer loads and primes all .lua files that are in the plugin's folder, in alphabetical order, except for the Info.lua file which is always loaded as the last one. So anything you define globally in any file is accessible in any other file.

Does this mean that function order doesn't matter at all? For example
function cool()
  hi()
end

function hi()
  print("hi")
end
will work fine? In the environment I worked in, Lua files weren't "primed" in that sense and I had to actually pay attention to my function structure.
Reply
Thanks given by:


Messages In This Thread
Uknown Command - by Shadowraix - 05-10-2015, 12:10 PM
RE: Uknown Command - by xoft - 05-10-2015, 03:51 PM
RE: Uknown Command - by Shadowraix - 05-10-2015, 04:15 PM
RE: Uknown Command - by xoft - 05-10-2015, 04:22 PM
RE: Uknown Command - by Shadowraix - 05-11-2015, 04:56 AM
RE: Uknown Command - by worktycho - 05-11-2015, 05:32 AM
RE: Uknown Command - by xoft - 05-11-2015, 07:28 AM
RE: Uknown Command - by Shadowraix - 05-11-2015, 09:42 AM
RE: Uknown Command - by xoft - 05-11-2015, 04:45 PM
RE: Uknown Command - by Shadowraix - 05-12-2015, 06:49 AM
RE: Uknown Command - by xoft - 05-12-2015, 07:02 AM
RE: Uknown Command - by Shadowraix - 05-12-2015, 07:07 AM
RE: Uknown Command - by xoft - 05-12-2015, 07:22 AM
RE: Uknown Command - by Shadowraix - 05-12-2015, 07:27 AM
RE: Uknown Command - by xoft - 05-12-2015, 07:24 AM



Users browsing this thread: 1 Guest(s)