If you implement each and every tiny feature, you can end up with a 'kitchen sink' language Now i want to kill the player with the name paul Because control structures in lua only consider nil and false to be false, and anything else to be true, this will always enter the if statement, which is not what you want either
Lua
There is no way that you can use binary operators like those provided in programming languages to compare a single variable to a list of values.
In lua asked 14 years, 9 months ago modified 1 year, 2 months ago viewed 80k times
45 if you are splitting a string in lua, you should try the string.gmatch () or string.sub () methods Use the string.sub () method if you know the index you wish to split the string at, or use the string.gmatch () if you will parse the string to find the location to split the string at Example using string.gmatch () from lua 5.1 reference manual: Edit for those who come across this post in the future, please note what @gimf posted
Since tables in lua are as much like arrays than anything else (even in a list context), there is no real correct way to append one table to another The closest concept is merging of tables Is there a common way to get the current time in or with milliseconds There is os.time(), but it only provides full seconds.
Some context, this is some of my first programming in lua and i am doing it with qsc software
Local a = controls.flippy.string local b = controls.flippy.value local c = controls.flippy.position l. I want to make a command that would kill a player you specify Let's say i type "kill/paul"