Skip to content

What's wrong with this snippet? #946

Answered by danielo515
danielo515 asked this question in Q&A
Discussion options

You must be logged in to vote

I can't express how angry I am right now... turns out the problem whas that arguments must be supplied in a table.
I copy pasted previous snippets that only had one argument, and, because only Lua gods know why, it was working, but as soon as it requires more than one argument, it fails miserably. Sometimes I wish lua was not so weak in terms of function arguments. An error saying "You must provide a table as second argument" would have been soooo much more useful...

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@L3MON4D3
Comment options

@danielo515
Comment options

@L3MON4D3
Comment options

@danielo515
Comment options

@L3MON4D3
Comment options

Answer selected by danielo515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants