Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Random problem with unexecuted llSay cmds

Tex Armistice
Registered User
Join date: 13 Dec 2005
Posts: 20
05-23-2006 19:12
I'm running into a problem with the llSay cmd not executing at random times. Sometimes it works perfectly giving me all the individual outputs to the chat channel and sometimes skipping one or more of them. Below is a condensed example of my code:
-------------------------
float Calc(integer x) { some calcs returning a value}
...
state_entry()
{
misc code

y=Calc(x)
llSay(0, "Value1: " + (string)y );

small amount of code

y=Calc(x)
llSay(0, "Value2: " + (string)y );

more code
}
-------------------------

I'm wondering since I am jumping almost immediately to a global function, if it somehow is "changing states" before getting done processing the llSay command. I admit this doesnt seem likely, but I can't figure out anything else. BTW, I've run this code with a debug llSay in the global function and it always executes.

Anyone run into a similar problem with llSay?
Tex Armistice
Registered User
Join date: 13 Dec 2005
Posts: 20
05-23-2006 19:59
Ignore this thread, it was a case of user stupidity.

I figured out that I had a logic flaw in my code that caused the llSay cmds to not execute based on my calculations. : )

If an admin see's this, feel free to delete the evidence of my blunder : )