If that version does subqueries, then you could use something like:
select id, username, topicid, time from forum where id in (select min(id) from forum group by username, topicid)
Some versions of MySQL support the non-standard usage where you don't have to aggregate the select columns not found in the group by, so this may be equivalent, but non-portable (and possible not supported in the future) on your system:
select id, username, topicid, time from forum group0 by username, topicid
Although, that may have the same non-deterministic behaviour as my first query, ie, id and time may not be from the same rows with the same username/topic combo.