05.10.2013, 16:09
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:
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.
}