15.10.2010, 16:28
Eugh i cannot ready your code it's too busy, i'm sorry, please use correct identation next time:
Can you check if the lags begins to show up every 60 seconds?
Код:
public Worldtime() { if(Minutes < 60) { Minutes += 1; SyncPlayerTime(); } else { if(Hours < 23) { Hours += 1; Minutes = 0; SetWorldTime(Hours); SyncPlayerTime(); } else { Hours = 0; Minutes = 0; SetWorldTime(Hours); SyncPlayerTime(); } } } public SyncPlayerTime() { for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) SetPlayerTime(i,Hours,Minutes); } }