Jump to content

help: basic counter


Aluraa
 Share

You are about to reply to a thread that has been inactive for 3566 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

-it is suposed to say "no" when clicked 9 times then say "Hello!" on click number 10 then reset icount to 0.

-what its doing is saing "Hello!" every time.

 

anyone know the problem?

 

integer icount = 0;
default

{
    touch_start(integer detected)
    {
        if (icount = 10)
        {
            llSay(0, "Hello!");
            icount = 0;
        }
            else
            {
                llSay(0, "no");
                icount = icount + 1;
        }
    }
}

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3566 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...