Great! I finally got it to work.
I changed
if ($totalonline > $numberoldhigh) {
to
if ( ($totalonline > $numberoldhigh) or ($numberoldhigh < 1) ) {
But after that it still didn't work. Then I just went bold, went into the database and setted a
value of 0 in the "high" field. After I did that, it worked like a charm.
Thanks alot for helping me out.
Greetings,
Spider