'LinKin Posted September 19, 2014 Posted September 19, 2014 Hello, getBoundKeys returns false if no keys are bound to some control name. So, when it returns false, can I make the following: table.insert(myTable, "Accelerate", getBoundKeys("accelerate") or "") so that it inserts in the second column of "myTable" the empty string ("") ? Need a clanwar script? Click here! Do you want some free scripts for your DD server? Visit my website.
Saml1er Posted September 19, 2014 Posted September 19, 2014 local a = false a = a or " " print ( type (a) ) --> string so YES!
Callum Posted September 19, 2014 Posted September 19, 2014 Can't have been that hard to test. Retired
'LinKin Posted September 20, 2014 Author Posted September 20, 2014 How to test LUA code online? I can't test it in-game. Need a clanwar script? Click here! Do you want some free scripts for your DD server? Visit my website.
Castillo Posted September 20, 2014 Posted September 20, 2014 http://www.lua.org/cgi-bin/demo San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
ixjf Posted September 20, 2014 Posted September 20, 2014 ... or download the Lua binaries for Windows, which isn't all that heavy. I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now