Hello, I have been scratching my head, trying and looking around without finding anything that can help me.
I try to make the loop Do While increment by 2 each loop but starting at 0 for the first result then 2,4,6,8...etc.
This increment by 1 from 0 to 10
//integer x;
default
{
touch_start(integer total_number)
{
integer x;
do
llSay(0, (string)x);
//x = x+2;
while(++x <= 10);
//if(x > 10)
//{
//x = 0;
//}
}
}
Here it can work but without the loop.
integer x;
default
{
touch_start(integer total_number)
{
//integer x;
//do
llSay(0, (string)x);
x = x+2;
//while(++x <= 10);
if(x > 10)
{
x = 0;
}
}
}
I have been trying many syntax but there is things I don't understand.