---
integer ledstatus;
integer ledmenu;
integer isLight;
string ledparams = "Printing LED Status...";
vector colour;
float intensity;
float glow;
default
{
state_entry()
{
//Listen for '/LEDSTAT'
ledstatus = llListen(0, "", llGetOwner(), "/LEDSTAT"
;//Listen for '/LEDMENU'
ledmenu = llListen(0, "", llGetOwner(), "/LEDMENU"
;llSetTimerEvent(0.0);
//Run when 'LED Status' is said by owner
}
listen( integer channel, string name, key id, string ledstatus )
{
ledparams += "\nColour = "+(string)colour;
ledparams += "\nLight Intensity = "+(string)intensity;
ledparams += "\nGlow Intensity = "+(string)glow;
llOwnerSay(ledparams);
llResetScript();
}
listen( integer channel, string name, key id, string ledmenu )
{
llOwnerSay("Test success!"
;llResetScript();
}
---
When I try to compile it, the script errors at 28, 69 (string ledmenu) with 'Name previously declared within scope'.
I don't have ledmenu defined besides having it an integer and set to be a listen parameter, just like ledstatus. I have no idea what's wrong.
I know it's probably some incredibly simple thing I missed, but please, any help is appreciated.