problem with timer
#2

The problem is in your code, not in ++.

It's because you used else if, in the order that you did.


My code was terrible, don't use it.


You need to do the check better as well.

Код:
if(distance<=10)
{
    if(distance<=2&&MineCount=10)
    {
        Boom!
    }
    else
    {
        MineCount++;
    }
}
Reply


Messages In This Thread
problem with timer - by Nabster - 19.03.2015, 06:00
Re: problem with timer - by Sew_Sumi - 19.03.2015, 06:27
Re: problem with timer - by Nabster - 19.03.2015, 06:35
Re: problem with timer - by Sew_Sumi - 19.03.2015, 06:40
Re: problem with timer - by Nabster - 19.03.2015, 06:47

Forum Jump:


Users browsing this thread: 4 Guest(s)