Timer runs 30times instead of forever(using fixes2 plugin)
#1

So i start this timer OnGameModeInit
pawn Код:
SetTimer_("OnPlayerPayday",1,3600*1000,-1);
If my calculations are correct, thats an hour...

Then i added some prints under the "OnPlayerPayday" function, and look what happens
pawn Код:
[19:04:02] Counter under OnPlayerPayday:1
[19:04:02] Counter under OnPlayerPayday:2
[19:04:02] Counter under OnPlayerPayday:3
[19:04:02] Counter under OnPlayerPayday:4
[19:04:02] Counter under OnPlayerPayday:5
[19:04:02] Counter under OnPlayerPayday:6
[19:04:02] Counter under OnPlayerPayday:7
[19:04:02] Counter under OnPlayerPayday:8
[19:04:02] Counter under OnPlayerPayday:9
[19:04:02] Counter under OnPlayerPayday:10
[19:04:02] Counter under OnPlayerPayday:11
[19:04:02] Counter under OnPlayerPayday:12
[19:04:02] Counter under OnPlayerPayday:13
[19:04:02] Counter under OnPlayerPayday:14
[19:04:02] Counter under OnPlayerPayday:15
[19:04:02] Counter under OnPlayerPayday:16
[19:04:02] Counter under OnPlayerPayday:17
[19:04:02] Counter under OnPlayerPayday:18
[19:04:02] Counter under OnPlayerPayday:19
[19:04:02] Counter under OnPlayerPayday:20
[19:04:02] Counter under OnPlayerPayday:21
[19:04:02] Counter under OnPlayerPayday:22
[19:04:02] Counter under OnPlayerPayday:23
[19:04:02] Counter under OnPlayerPayday:24
[19:04:02] Counter under OnPlayerPayday:25
[19:04:02] Counter under OnPlayerPayday:26
[19:04:02] Counter under OnPlayerPayday:27
[19:04:02] Counter under OnPlayerPayday:28
[19:04:02] Counter under OnPlayerPayday:29
[19:04:02] Counter under OnPlayerPayday:30
As you might notice, it's printed not once in an hour. It's printed just after it's started. But why 30 times? Yesterday it was 45 times and i don't remember changing anything...

Note that i'm using https://sampforum.blast.hk/showthread.php?tid=375925 this plugin and it's "SetTimer_" native
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)