|
| 30 May 2013 06:59 PM |
So i have a script that does something like this.
b = "fsd[[fsd]]fsd" loadstring([[ print(]]..b..[[) ]])()
- attempt to call a nil value
i think its because its trying to read a string with double brackets when the string is signified by double brackets
but how would i mitigate that |
|
|
| Report Abuse |
|
|
|
| 30 May 2013 07:11 PM |
"attempt to call a nil value" happens when you are trying to call a function that simply doesnt exist.
a = function() print("a") end
A()
>attempt to call a nil value |
|
|
| Report Abuse |
|
|
|
| 30 May 2013 07:15 PM |
k so i tried something different-
local b = "fsd[[fsd]]fsdf"
assert(loadstring([[ print(]]..b..[[) ]]))()
Workspace.Script:2: [string " print(fdsf[[fdsfsd]]fsdfsdf)..."]:1: ')' expected near 'fsdfsdf' |
|
|
| Report Abuse |
|
|
|
| 30 May 2013 07:25 PM |
| Nvm, it was only because i forgot quotations inside of the string b... |
|
|
| Report Abuse |
|
|