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

Quote:
Originally Posted by Dragonsaurus
Посмотреть сообщение
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();
}
public OnPlayerPayDay()
{
    // Payday function stuff like GivePlayerMoney etc...
    SetTimer_("OnPlayerPayDay", 3600*1000, 3600*1000, 1);  // Not -1 here! That will call many timers.
}
Did you try this?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)