02.11.2014, 15:22
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;
}