Hi guys,
I am trying to create a decimal to binary conversion in second life, but for know am trying to use the event listen to enter an input (integer) and get back an output, but thats not working, to make my self more clear consider this simple code:
-----------------
integer decimal;
default
{
state_entry()
{
llListen( 0, "", NULL_KEY, "" );
}
listen( integer channel, string name, key id, string message )
{
if ( decimal > 225 )
{
llWhisper( 0, "not acceptable" );
// open door
}
else
{
llWhisper( 0, "Hello avatar" );
// etc.
}
}
}
---------------------
know when I enter 256 am expecting the output to be (not acceptable) because the decimal I have entered is more than 255, but why am I getting (hello avatar) as an output instead?
any suggestion ?