10.04.2013, 19:58
Quote:
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.
|

------------------------
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
}
}
}
}
}

Regards FalconX