lua
Lua print on the same line
In Pascal, I have write and writeln. Apparently Lua\'s print is similar to writeln of Pascal. Do we have som开发者_高级运维ething similar to write of Pascal? How can consecutive print commands send th[详细]
2023-03-30 00:56 分类:问答How to skip optional parameters in Lua?
There is a method I have been calling: t1, t2 = LSL:GetDiffItem(item) where the method is declared as: GetDiffID(item, ignoreEnchant, ignoreGem, red, yellow, blue, meta, ignorePris)[详细]
2023-03-30 00:42 分类:问答Making global environment access-only (Lua)
I embedded Lua and want scripts to be able to read the global table but not automatically write to it so two scripts can write variables with the same name without overwriting eachother but still bein[详细]
2023-03-29 23:41 分类:问答C++ and Lua: automatically register functions
When I was working with Lua in C#, I would add attributes to the methods I wanted to register with Lua, something like this:[详细]
2023-03-29 22:05 分类:问答How can I delay, or pause, a function in ansca's corona? (lua)
I can\'t find it documented anywhere :/ (question is the title) found this but can\'t get it to work. function onCollision( event )[详细]
2023-03-29 20:42 分类:问答How do you include LuaPlus into your project?
I downloaded the visual2008 file from here(http://luaplus.org/projects/luaplus/files), but I don\'t know how to add it to my project. It\'s not like the other libraries where I just had to add the inc[详细]
2023-03-29 16:37 分类:问答is table.remove() the same as p[#p] = nil and which is quicker?
As the title says. If I have a table p in lua, is using table.remove(p) the same as p[#p] = nil if so which is quicker - I\'d guess the second, but would like s开发者_开发问答ome reassurance.[详细]
2023-03-29 16:25 分类:问答Problems displaying paragraphs when retrieving text from a database
I am having problems displaying chucks of text, with paragraphs, from a database. For example, if I pass in a string such as:[详细]
2023-03-29 13:46 分类:问答Circle rect collision detection not working in Corona SDK
I needed to get rid of physics in my game so I needed to implement a custom collision detection function (the collision detection function is being called every frame). I want to check if a rectangle[详细]
2023-03-29 12:34 分类:问答Key Bind Reader Script
I FIXED IT! Yeeeeeeees. Ok, so I made a Key Bind script, that sets a IntValue to the byte code of a Key you press. That works all fine.[详细]
2023-03-29 07:42 分类:问答