Perwin Rambler
Registered User
Join date: 24 Mar 2005
Posts: 152
|
06-11-2005 22:36
I have a proccess where I end up doing a scan and adding the name of an avatar to a list this list is used to compare against future scans
my problem is when doing the compare it doesn't seem to care that the names are different and just says " yes they match!"
this is my compareing if statement WARN1 is the list and w1 is the place holder that I step through with a for loop
if ((llList2String(WARN1, w1)) == llDetectedName(n)); { DO SOME THINGS }
what is wrong with this?
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
06-11-2005 23:16
From: Perwin Rambler if ((llList2String(WARN1, w1)) == llDetectedName(n)); { DO SOME THINGS } what is wrong with this?
That semicolon should not be there, it ends the IF and the commands in the brackets will simply be executed. I also belive there is one too many sets of parenthasis: if (llList2String(WARN1, w1) == llDetectedName(n)) { //DO SOME THINGS } This should work.
|
Perwin Rambler
Registered User
Join date: 24 Mar 2005
Posts: 152
|
Thank you!!
06-12-2005 05:40
Late night programming sucks..
I wonder what else I messed up in it. hehe.
Thank You again.. I must have looked at that line 3 dozem times..
|