How to make this condition?
#4

Quote:
Originally Posted by Babul
try this:
pawn Код:
public OneSecondTimer(playerid)
{
    Server[Seconds]++;
    if(Server[Seconds]>59)
    {
        Server[Seconds]-=60;
        Server[Minutes]++;
        if(Server[Minutes]%10==0) // This line
        {
            // do something
        }
    }
    return 1;
}
What is this "%" for?

Quote:
Originally Posted by [HiC
TheKiller ]
So you are saying you want a timer to repeat every 10 minutes, I'm a but confused.
Yes but, I don't want a timer, I want the OneSecondTimer to check and do something every 10 mins...
Reply


Messages In This Thread
How to make this condition? - by M1GU3L - 15.12.2009, 04:22
Re: How to make this condition? - by Babul - 15.12.2009, 05:35
Re: How to make this condition? - by [HiC]TheKiller - 15.12.2009, 08:12
Re: How to make this condition? - by M1GU3L - 15.12.2009, 15:27
Re: How to make this condition? - by Babul - 25.12.2009, 16:09

Forum Jump:


Users browsing this thread: 1 Guest(s)