denny199 Posted April 26, 2013 Share Posted April 26, 2013 Hi, I went over to a problem in my scripting code, is there a way to remove a letter from a element like: local D2290 = 8 Then remove the `D` from the element So it will return `2290` in a string instead of `D2290` Is this possible? If not, is there then a alternative way to bypass this? Because we can't use variables like this: local 2290 = 5 Edit: why do I need this? Because "D2290" is a invalid table ( returns nil ) My table for example: tableKUT = { [D2290]={"3-Seat couch 1" , 2290}, } Kindly regards, Danny Link to comment
Castillo Posted April 26, 2013 Share Posted April 26, 2013 Instead of that table index, use: tableKUT = { ["D2290"]={"3-Seat couch 1" , 2290}, } Link to comment
denny199 Posted April 26, 2013 Author Share Posted April 26, 2013 Hahaha, yeah thanks, I realised it some seconds ago, ;p Link to comment
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