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

Maybe this sounds silly question, but does OnPlayerPayDay have more params, like playerid?
Is it forwarded?
Can't find any calculation problems though.

Edit: If nothing is wrong with that, I'd advise you to just call the function without timer under OnGameModeInit, and set the timer at at the end of that function. Example:
pawn Код:
public OnGameModeInit()
{
    OnPlayerPayDay();
    return 1;
}
public OnPlayerPayDay()
{
    // Payday function stuff like GivePlayerMoney etc...
    SetTimer_("OnPlayerPayDay", 3600*1000, 3600*1000, 1);  // Not -1 here! That will call many timers.
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)