clickable 'who here' miniconsole HELP!
Posted: Mon Dec 03, 2012 1:34 am
I have been getting the error:
<[string "peopleHere = peopleHere or {}..."]:30: attempt to call method 'EchoLink' (a nil value)>
what im trying to do is make a 'who here' miniconsole and make anyone appended to that list targeted by clicking on them with this code:
function whoHereAdd()
clearUserWindow("nameBox")
table.remove(peopleHere)
for k, v in ipairs (peopleHere) do
nameBox:EchoLink( "(" .. v .. ")\n", [[expandAlias("target ]]..v..[[") printTargetWindow()]], "Target " .. v, true, false )
end
end
line 30 is the nameBox:EchoLink(), what do I need to do?
<[string "peopleHere = peopleHere or {}..."]:30: attempt to call method 'EchoLink' (a nil value)>
what im trying to do is make a 'who here' miniconsole and make anyone appended to that list targeted by clicking on them with this code:
function whoHereAdd()
clearUserWindow("nameBox")
table.remove(peopleHere)
for k, v in ipairs (peopleHere) do
nameBox:EchoLink( "(" .. v .. ")\n", [[expandAlias("target ]]..v..[[") printTargetWindow()]], "Target " .. v, true, false )
end
end
line 30 is the nameBox:EchoLink(), what do I need to do?