Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llListFindList problem

Mod Faulkner
Registered User
Join date: 11 Oct 2005
Posts: 187
01-20-2008 19:49
I have a list of the names of prims:
list prims = ["SW","","SE","","NE","","NW",""];
in a script that listen for messages from other prims.

The prims send a message with their position. For example the prim named SW does

llSay(channel,(string)llGetPos());

In the main script there is:

listen(integer channel, string name, key id, string msg){
if(llListFindList(prims,[name]) != -1){
integer I = llListFindList(prims,[name]);
prims = llListReplaceList(prims,[(vector)mgs], I + 1, I +1)
}
}

Can you tell me why this if statement does not get triggered.. I have put in a llOwnerSay(name) before the if statement and so I know the message gets there.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-20-2008 21:43
You're sure the names of the prims sending the chats are EXACTLY the same as the names you have in the list? No upper/lower case differences, spaces, etc.?
ElQ Homewood
Sleeps Professionally
Join date: 25 Apr 2007
Posts: 280
01-20-2008 22:53
Only thing I can think is something higher up in the script..does the llListen statement call the same channel?