Problem with PayCheck
#2

I doubt it`ll work.

Try using like:

pawn Код:
forward PaydayTime();
public PaydayTime()
    new hh, mm, ss;
    gettime( hh, mm, ss );

    if( mm == 0 )
    {
           //blabla, your code here
And set a timer, once at minute, on gamemode init, like:

pawn Код:
SetTimer( "PaydayTime", 60000, true );
What does this do? It checks every minute, if the new 'minutes' is 00 ... which means, that only at :00 you`ll get paycheck. Don`t worry about few seconds delay.
Reply


Messages In This Thread
Problem with PayCheck - by bijoyekuza - 26.03.2011, 16:25
Re: Problem with PayCheck - by antonio112 - 26.03.2011, 16:45
Re: Problem with PayCheck - by Medal Of Honor team - 26.03.2011, 17:46
Re: Problem with PayCheck - by antonio112 - 26.03.2011, 18:07

Forum Jump:


Users browsing this thread: 1 Guest(s)