08.01.2014, 07:17
I made a stats command and i put in it playing time everything went prefect but when the mins reached 60 the hours didn't increase
but here ss to show what i mean
pawn Код:
public PlayingTime(playerid)
{
if(PlayingTimeSec[playerid] < 59)
{
PlayingTimeSec[playerid] ++;
return 1;
}
if(PlayingTimeSec[playerid] == 59)
{
PlayingTimeMin[playerid] ++;
PlayingTimeSec[playerid] =0;
return 1;
}
if(PlayingTimeMin[playerid] == 59)
{
PlayingTimeHour[playerid] ++;
PlayingTimeMin[playerid] =0;
return 1;
}
return 1;
}