13.05.2015, 13:55
Hello, im maked this function for every 31 second check if 0 minutes, change server time to real time. but, this not working, i dont know why? any help?
timer:
public:
timer:
Код:
SetTimer("MedServerTimer1", 31000, 1);
Код:
public MedServerTimer1() { new Minute; gettime(Minute); if(Minute == 0) { new Hour; gettime(Hour); SetWorldTime(Hour); new string[124]; format(string, sizeof(string),""COL_LIME"[ULN]: "COL_WHITE"Now is %d hours.", Hour); SendClientMessageToAll(-1,string); } return 1; }