|
Axel Leroy
Registered User
Join date: 31 Dec 2006
Posts: 6
|
01-23-2007 10:00
To not give you a couple of long scripts ill boil my problem down a bit i have a listen event like this. state_entry() { llListen(100,"","",""  ; } Then i have a conditional like this. listen(integer channel, string name, key id, string message) { if (message == "initiate pos retrieval"  { Do stuf. } After that the script should run past the conditional who looks like this. if (llGetSubString(message,0,10) == "sendbackone"  ; { Do stuff } } Problem is that it doesnt.. The second conditional is run no matter what. Its driving me crasy here. Hope someones got an answer. If you need more depth to my question. Just ask.
|
|
Jacques Groshomme
Registered User
Join date: 16 Mar 2005
Posts: 355
|
01-23-2007 10:14
By your snippet, the llGetSubString function looks legit. Perhaps you could llOwnerSay the message and the substring in the lines before the conditional block, just to make sure you are saying and parsing what you think you are saying. llOwnerSay(message); llOwnerSay(llGetSubString(message,0,10));
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
01-23-2007 10:23
If it's not too much trouble, it might help seeing your whole listen event (and for clarity, surround it with php and /php tags (encased in [square brackets])) . . .
Baron H.
|
|
Ged Larsen
thwarted by quaternions
Join date: 4 Dec 2006
Posts: 294
|
01-23-2007 10:24
From: Axel Leroy After that the script should run past the conditional who looks like this. if (llGetSubString(message,0,10) == "sendbackone"  ; { Do stuff } } Problem is that it doesnt.. The second conditional is run no matter what. Its driving me crasy here. Hope someones got an answer. If you need more depth to my question. Just ask. Get rid of the semicolon at the end of the if line. I think that should work.
|
|
Axel Leroy
Registered User
Join date: 31 Dec 2006
Posts: 6
|
Doh!
01-23-2007 16:03
DOH!. ofcource a little thing like a ";" ruined it. Well thanks for all your replys. Been really helpfull 
|