29.09.2012, 12:29
Have you tried setting Minute and Second to 60 not 59? Just a suggestion..
Oh and with the ending, is that it or did you just crop off some bits? I would have thought you would have had to keep doing '}' till you got to the end or something/
Код:
public ClockUpdate() { new string[12]; Second += 1; format(string, sizeof(string), "%i:%i:%i", Hour, Minute, Second); for(new x = 0; x < MAX_PLAYERS; x++) { if(Logged[x] == 1) { if(Second == 60) { if(Minute == 60) { for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Player[i][PaydayTime] >= 30) { SendClientMessage(i, ORANGE, ">> Your pay cheque is ready to be picked up. Please head to the city hall to claim it."); CheckReady[i] = 1; } else return SendClientMessage(i, LIBLUE, ">> You haven't been playing long enough to get a pay cheque."); } } } } if(Hour == 23) { if(Second == 59) { Hour = 0; Minute = 0; Second = 0; } } if(Minute == 59) { if(Second == 59) { Hour ++; Minute = 0; Second = 0; } /*if(Hour == 23) { Hour = 0; Minute = 0; Second = 0; } else { Hour ++; Minute = 0; Second = 0; }*/ }