Taxi Fare Meter
#6

Quote:
Originally Posted by Ballu Miaa
Посмотреть сообщение
Yeah man i got your point. I dont need to check it for each minute. I can reset it all the time and keep the loop running. You really helped me alot. Fuck yeah. Thanks man Thanks again.
No problem mate

------------------------

Or instead of making timer for each player you can make one, and loop all the players.

pawn Код:
public GlobalTaxiTimer( )
{
    foreach( Player, i )
    {
        if( IS_PLAYER_IN_TAXI_FARE_SHIZ[ i ] ) // replace it with your vars
        {
            pSeconds[ i ]++;

            switch( pSeconds[ playerid ] )
            {
                case 60: // 1 minute
                {
                    pSeconds[ i ] = 0;

                    pMinutes[ i ]++;


                    // rest of your code in minutes
                }
            }
        }
    }
}
or if you're using timer for each player you can kill it when the fare finishes

Regards FalconX
Reply


Messages In This Thread
Taxi Fare Meter - by Ballu Miaa - 09.04.2013, 02:53
Re: Taxi Fare Meter - by FalconX - 09.04.2013, 03:43
Re: Taxi Fare Meter - by Ballu Miaa - 09.04.2013, 04:15
Re: Taxi Fare Meter - by FalconX - 09.04.2013, 04:27
Re: Taxi Fare Meter - by Ballu Miaa - 09.04.2013, 04:33
Re: Taxi Fare Meter - by FalconX - 10.04.2013, 19:58

Forum Jump:


Users browsing this thread: 2 Guest(s)