Guten Morgen,
Und zwar mlchte ich nicht von 60 auf 0 , sondern von 0 auf 60.
Wie mach ich es ? :s
Bin wieder leicht aus der übung.
Code:
if(IsPlayerConnected(i))
{
PlayerInfo[i][pGesamtMinutes]++;
PlayerInfo[i][pMinutesSinceLogin]++;
PlayerInfo[i][pMinutesSinceAn]++;
if(PlayerInfo[i][pPlayMinutes] <= 60)
{
PlayerInfo[i][pPlayMinutes]++;
}
if(PlayerInfo[i][pPlayMinutes] >= 60)
{
PlayerInfo[i][pPlayMinutes] = 0;
{
PlayerInfo[i][pGesamtMinutes]++;
PlayerInfo[i][pMinutesSinceLogin]++;
PlayerInfo[i][pMinutesSinceAn]++;
if(PlayerInfo[i][pPlayMinutes] <= 60)
{
PlayerInfo[i][pPlayMinutes]++;
}
if(PlayerInfo[i][pPlayMinutes] >= 60)
{
PlayerInfo[i][pPlayMinutes] = 0;