Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Why is this 'if' not working?

Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
12-28-2008 19:47
What am I missing here - the 'IF' passes everything!?

[19:40] tester- 1 prim whispers: OUT, texture = Sheet01, 2, 0
[19:40] tester- 1 prim whispers: IN, texture = Sheet01, 2, 0

Function()
{
llWhisper(0, "Previous Page function, texture = " + (string)llGetTexture(0) + ", " + (string)in_currentSheet + ", " + (string)in_currentTexture);//test line

if ((in_currentSheet == 0) && (in_currentTexture == 0));
{

llWhisper(0, "IN, texture = " + (string)llGetTexture(0) + ", " + (string)in_currentSheet + ", " + (string)in_currentTexture);//test line

}
}
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
12-28-2008 19:53
From: Tarak Voss

if ((in_currentSheet == 0) && (in_currentTexture == 0));

Stray semicolon on the end there.
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
12-28-2008 20:45
Dang!!!! - thanks
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
12-29-2008 07:34
score one for 1TBS =P
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Cypher Ragu
[Mad Scientist]
Join date: 6 Jul 2008
Posts: 174
12-30-2008 07:15
Yeah, I made that mistake a few times xD


It had me scratching my head for weeks... I was convinced that it was a problem with the sim or it was just because of lag :o
_____________________
Life is a highway... And I just missed my exit.