Page 1 of 1

Need Help

PostPosted: Thu Mar 10, 2011 3:33 pm
by tzoli
Hi.
What is the problem whit this?:
Code: Select all
if(textNumber %  htime){
//...
}

I would like to reach if the textNumber can be divide with 40(without rest).
Please Help.

Re: Need Help

PostPosted: Thu Mar 10, 2011 4:30 pm
by schnellboot
textNumber%40==0

Re: Need Help

PostPosted: Thu Mar 10, 2011 5:33 pm
by tzoli
Thanks.
But a have an error:
(htime=integer(values:40,20,15 or 10)
Code: Select all
if(textNumber % htime == 0){

                       wheaat = wheaat + ew;
                    }
textNumber = textNumber +1;

Re: Need Help

PostPosted: Thu Mar 10, 2011 5:36 pm
by Game A Gogo
if((int)textNumber%(int)htime == 0)wheaat+=ew;
textNumber++;

Re: Need Help

PostPosted: Thu Mar 10, 2011 6:07 pm
by tzoli
Thanks :D It's working :D