09.04.2013, 03:43
Well, here it is:
This was just an example, you may replace the variables with your own. If this is not what you mean, please explain 
Regards FalconX
pawn Код:
playerVariables[ playerid ][ pMyFare ] += playerVariables[ playerid ][ pTaxiFare ]; // same thing
// well you can do this, I am not sure if this is the MOST efficient way to do but here it is:
// if you want to check 60 or 60*2 or 60*3 and so on you may do this
new pSeconds[ playerid ],
pMinutes[ playerid ]; // this is not really needed but yea O_O
public YourTimer( playerid )
{
pSeconds[ playerid ]++; // increments (adds by one)
switch( pSeconds[ playerid ] )
{
case 60: // 1 minute
{
pSeconds[ playerid ] = 0; // making it zero for the next minute
pMinutes[ playerid ]++; // counts how many minutes it has been (not really needed or maybe? just incase)
// here you can now do the rest of your code according to each minute O_O
}
}
}

Regards FalconX