12-15-2014, 07:23 PM
Yes, that's normal, because in Lua the parameters are somewhat "fuzzy". There's no such thing as parameter types, a function can check what type of parameter it received and behave completely different on various types. Also the number of params is arbitrary in the core Lua language - if a function wants more params than it received, Lua will fill the "missing" parameters with nil values. And if you pass more values than a function expects, they will get silently discarded.
That said, most functions in MCServer interface are pretty strict about their parameters, so you should consult the API docs closely. Most of the time you'll get a warning at runtime if you try to pass the wrong parameter type.
If you followed the article on setting up ZBS, you should have a basic code completion. For me it works about 50% of the time, listing the function parameters; the other 50% it's completely silent. Better than nothing
That said, most functions in MCServer interface are pretty strict about their parameters, so you should consult the API docs closely. Most of the time you'll get a warning at runtime if you try to pass the wrong parameter type.
If you followed the article on setting up ZBS, you should have a basic code completion. For me it works about 50% of the time, listing the function parameters; the other 50% it's completely silent. Better than nothing