Minutes and Hours played
#2

pawn Код:
//at top of script
new minuteTimer;


//OnGameModeInit
minuteTimer = SetTimer("minute", 60000, true);

//OnGameModeExit
KillTimer(minuteTimer);

//Anywhere (near the other publics) - Use foreach if you know it..
forward minute();
public minute(){
    for(new i = 0; i<MAX_PLAYERS; i++){
    if(minute[i] => 59){
        minte[i] = 0;
        hour[i]++;
    }else{
    minute[i]++;
    }
    }
    return 1;
}
where i use minute[i] and hour[i] you will change to whatever the minutes and hours in your enum,.. like "PlayerInfo[i][pMinutes]" for example...

EDIT:
sorry for messy code, im at college so i can set it up correctly.. although break it all down and it should work..
Reply


Messages In This Thread
Minutes and Hours played - by NewbBeginner - 17.11.2010, 10:52
Re: Minutes and Hours played - by DarrenReeder - 17.11.2010, 11:47
Re: Minutes and Hours played - by dark_clown - 17.11.2010, 12:16
AW: Minutes and Hours played - by Cank - 17.11.2010, 13:28
Re: AW: Minutes and Hours played - by NewbBeginner - 17.11.2010, 14:24
Re: Minutes and Hours played - by rs.pect - 17.11.2010, 14:31
Re: Minutes and Hours played - by NewbBeginner - 17.11.2010, 14:37
Re: Minutes and Hours played - by Zh3r0 - 17.11.2010, 14:42
AW: Minutes and Hours played - by Cank - 17.11.2010, 14:50
Re: Minutes and Hours played - by NewbBeginner - 17.11.2010, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)