The spamming is indeed caused by the line 37 semicolon, just remove it and it'll work.
Other optional stuff (it's not necessary to make it work but maybe fixes unintended behaviour):
You're currently using game_time which gives you the time from the start of the round in seconds which hangs up the vote when it's cast on the end of a very long round. You might want to use
php's time() there:
Code: Select all
$gameTimeCurr = time();
instead of
$gameTimeCurr = $param[1];
also to not accidentally miss the end of the vote you can use
Code: Select all
if ($gameTimeVoteEnd >= $gameTimeCurr && $voteInSession == true)
instead of
if ($gameTimeVoteEnd == $gameTimeCurr && $voteInSession == true)
so you maybe also can increase your LADDERLOG_GAME_TIME_INTERVAL then for less ladderlog spammage
Oh, and also you might want to add
right after you get $input=rtrim(...); so you can always kill the script via KILL_SCRIPT (as dlh states
here). Not much of an issue but when the script gets larger it may be a good idea.