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?
clickable 'who here' miniconsole HELP!
Re: clickable 'who here' miniconsole HELP!
<[string "peopleHere = peopleHere or {}..."]:30: attempt to call method 'EchoLink' (a nil value)>
Basically what that is saying is that it's attempting to call the function EchoLink, a nil value, meaning it doesn't exist.
EchoLink should be echoLink
Look here.
Basically what that is saying is that it's attempting to call the function EchoLink, a nil value, meaning it doesn't exist.
EchoLink should be echoLink
Look here.
Last edited by Lezard on Mon Dec 03, 2012 1:48 am, edited 1 time in total.
Re: clickable 'who here' miniconsole HELP!
I tried both, neither work
Re: clickable 'who here' miniconsole HELP!
the format should be:
echoLink([windowName], text, command, hint, [bool use_current_format or defaultLinkFormat])
So the code should look like:
echoLink("nameBox", "(" .. v .. ")\n", [[expandAlias("target ]]..v..[[") printTargetWindow()]], "Target " .. v, true, false )
echoLink([windowName], text, command, hint, [bool use_current_format or defaultLinkFormat])
So the code should look like:
echoLink("nameBox", "(" .. v .. ")\n", [[expandAlias("target ]]..v..[[") printTargetWindow()]], "Target " .. v, true, false )
Re: clickable 'who here' miniconsole HELP!
does that hold true when Im working with a geyser miniconsole? cause currently Im using:
nameBox:echo( "(" .. v .. ")\n", [[expandAlias("target ]]..v..[[") printTargetWindow()]], "Target " .. v, true, false )
and that works just fine aside from not making the names a link
nameBox:echo( "(" .. v .. ")\n", [[expandAlias("target ]]..v..[[") printTargetWindow()]], "Target " .. v, true, false )
and that works just fine aside from not making the names a link
Re: clickable 'who here' miniconsole HELP!
For geyser you use setClickCallback()