Playing Time in stats command
#1

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

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;
}
but here ss to show what i mean

Reply


Messages In This Thread
Playing Time in stats command - by TomatoRage - 08.01.2014, 07:17
Re: Playing Time in stats command - by Voxel - 08.01.2014, 07:31
Re: Playing Time in stats command - by TomatoRage - 08.01.2014, 12:53
Re: Playing Time in stats command - by Face9000 - 08.01.2014, 13:15
Re: Playing Time in stats command - by KingHual - 08.01.2014, 13:39
Re: Playing Time in stats command - by Patrick - 08.01.2014, 13:51
AW: Playing Time in stats command - by BigETI - 08.01.2014, 13:54
AW: Playing Time in stats command - by Nero_3D - 08.01.2014, 15:24
Re: Playing Time in stats command - by Face9000 - 10.01.2014, 21:27
Re: Playing Time in stats command - by BlackBank - 10.01.2014, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)