|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
print(lolwut.."wut") |
|
|
|
Ummm...You cannot get the value of something without indexing it...lol. |
|
|
|
lolwut = "LOL"
function getit()
return lolwut
end
print(getit())
LOLWUT? |
|
|
|
lolwut = "LOL"
pie = "lol"
print(loadstring("return " .. pie .. "wut")()) |
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
Or you could use print(PIE....NEWB) |
|
|
Ohhhh. I see what you wanted. |
|
OysiJoin Date: 2009-07-06 Post Count: 9058 |
[ Content Deleted ] |
|
|
That makes...a lot of sense actually. I'd never thought of anything like that before... |
|
miloguyJoin Date: 2009-12-19 Post Count: 7702 |
print(loadstring("return "..pie.."wut")())? |
|
miloguyJoin Date: 2009-12-19 Post Count: 7702 |
Woa fungal I didn't even see your post! |
|
|
Oysi's is better than both of yours. |
|
zethalJoin Date: 2008-07-11 Post Count: 189 |
No need to hate on people, although ironically every time i see someone hating, Oysi is somewhere in the thread, Q.Q |
|
XlegoXJoin Date: 2008-06-16 Post Count: 14955 |
Use getfenv like stated above.
However, you should NEVER EVER have to use this in a practical script. The only good applications of this and related things are fairly esoteric in their nature. |
|