05.04.2015, 06:27
When is payday I want to remove his payday minutes from stats.
Something like:
if paydayminutes = 10 at payday to make his playingminutes = 10 already do this.
But I want to give -10 at payday minutes not to keep them like that. (10 or -10 was an example)
Something like:
if paydayminutes = 10 at payday to make his playingminutes = 10 already do this.
But I want to give -10 at payday minutes not to keep them like that. (10 or -10 was an example)
Код:
if(playerVariables[x][pPaydayMinutes] > 0) { playerVariables[x][pPlayingMinutes] = playerVariables[x][pPaydayMinutes]; if(playerVariables[x][pPlayingMinutes] + playerVariables[x][pPaydayMinutes] > 59 ) { playerVariables[x][pPlayingHours]++; playerVariables[x][pPlayingMinutes] = playerVariables[x][pPlayingMinutes] - 60; } }