• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] SetTimer looping through players with gettime() function
#2
1. first Checker call time - second Checker call time != 1.

2. i think the result will be changed as initial value of TickChecker[0].

gettime() | TickChecker[0]
[23:08:45] 1562681325 1562681327
[23:08:45] [dbg] Sent checkertick
[23:08:46] 1562681326 1562681327
[23:08:46] [dbg] Sent checkertick
[23:08:47] 1562681327 1562681328
[23:08:47] [dbg] Sent checkertick
[23:08:48] 1562681328 1562681329
[23:08:48] [dbg] Sent checkertick
[23:08:49] 1562681329 1562681330
[23:08:49] [dbg] Sent checkertick
[23:08:50] 1562681330 1562681331
[23:08:50] [dbg] Sent checkertick
[23:08:52] 1562681332 1562681332
[23:08:53] 1562681333 1562681332
[23:08:54] 1562681334 1562681332
[23:08:55] 1562681335 1562681332
[23:08:56] 1562681336 1562681332
[23:08:58] 1562681337 1562681332
[23:08:58] 1562681338 1562681332

this happens because next TickChecker[0]`s value is based on pre gettime(), and this not mean seconds
  Reply


Messages In This Thread
RE: SetTimer looping through players with gettime() function - by Cada - 2019-07-09, 01:54 PM

Forum Jump: