13.07.2013, 12:55
pawn Код:
public GameTime(playerid) {
PlayerInfo[playerid][Seconds]++;
if(PlayerInfo[playerid][Seconds] == 60) {
PlayerInfo[playerid][Minutes]++;
PlayerInfo[playerid][Seconds] = 0;
}
if(PlayerInfo[playerid][Minutes] == 60) {
PlayerInfo[playerid][Hours]++;
PlayerInfo[playerid][Minutes] = 0;
PlayerInfo[playerid][Seconds] = 0;
}
return 1;
}