Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

having else trouble

Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
12-03-2008 17:31
cant figure this out on whats wrong any ideas?

CODE

list admins = [""];
integer active;
integer admin;
integer brodcast = -5657;
integer dischan = -7493;
detectsim()
{
string region = llGetRegionName();
if(region == "Lestern")
{
llOwnerSay("Radio Active");
active = TRUE;
}
else
{
llOwnerSay("Radio Deativated - Only useable in Lestern Sim");
active = FALSE;
}
}
default
{
state_entry()
{
llSetText("",<1,1,1>,1);
llListen(1,"",llGetOwner(),"");
llListen(2,"",llGetOwner(),"");
llListen(0,"",llGetOwner(),"");
detectsim();
}
listen( integer channel, string name, key id, string message )
{
if(active == TRUE)
{
if(channel == 1)
{
if(admin == TRUE)
{
llRegionSay(brodcast,"[GM] "+(string)llGetOwner()+" (PD): "+message);
}
if(admin == FALSE)
{
llRegionSay(brodcast,(string)llGetOwner()+" (PD): "+message);
}
}
else if(channel == 2)
{
if(admin == TRUE)
{
llRegionSay(brodcast,"[GM] "+(string)llGetOwner()+" (PD)->(Dispatch): "+message);
}
if(admin == FALSE)
{
llRegionSay(brodcast,(string)llGetOwner()+" (PD)->(Dispatch): "+message);
}
}
else if(channel == 0)
{
if(message == "aon")
{
if(~llListFindList(admins, (list)llGetOwner()));
{
admin = TRUE;
llWhisper(0,"[GM] Tag Enabled");
}
else // error
{
llOwnerSay("Admin only Command");
}
}
if(message == "aoff")
{
admin = FALSE;
llWhisper(0,"[GM] Tag Disabled");
}
else // error
{
llOwnerSay("Admin only Command");
}
}
}
else
{
llOwnerSay("Radio is inactive you may only listen");
}
}
}
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
12-03-2008 18:23
if(~llListFindList(admins, (list)llGetOwner()));

remove the semi-colon at the end
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
12-04-2008 14:36
wow..... i feel dumb now