Playing hours not working
#2

Try to replace SetTimerEx("PlayingHours", 60000, true, "i", playerid); with SetTimerEx("PlayingHours", 10000, true, "i", playerid); and add a new variable, second?

pawn Код:
public PlayingHours(playerid)
{
playerVariables[playerid][pSeconds]++;
if(playerVariables[playerid][pSeconds] == 60)
{
      playerVariables[playerid][pMinutes]++;
      playerVariables[playerid][pSeconds] = 0;
}
      if(playerVariables[playerid][pMinutes] == 60)
      {
      playerVariables[playerid][pPlayingHours]++;
      playerVariables[playerid][pMinutes] = 0;
      }
      return 1;
}
Reply


Messages In This Thread
Playing hours not working - by GwENiko - 02.11.2014, 15:19
Re: Playing hours not working - by TheSimpleGuy - 02.11.2014, 15:22
Re: Playing hours not working - by GwENiko - 02.11.2014, 15:26
Re: Playing hours not working - by TheSimpleGuy - 02.11.2014, 15:28
Re: Playing hours not working - by GwENiko - 02.11.2014, 15:29
Re: Playing hours not working - by Quickie - 03.11.2014, 00:10

Forum Jump:


Users browsing this thread: 1 Guest(s)