$$awardprint=""$$ $$loop row as awarddef index as awarddefindex select * from awarddefinition$$ $$pointsrecorded="0"$$ $$loop row as awardpoints index as awardpointsindex select count(*) from view_awardpoints where roundindex='%%roundindex%%' and awardindex='%%awarddef.awardindex%%'$$ $$pointsrecorded=awardpoints.0$$ $$endloop awardpoints$$ $$if (pointsrecorded !EQUALS "0")$$ $$if (awardprint EQUALS "")$$$$endif$$ $$if (awardprint EQUALS "XX")$$$$awardprint=""$$$$endif$$ $$awardprint="%%awardprint%%X"$$ $$endif$$ $$endloop awarddef$$ $$if (awardprint !EQUALS "")$$$$awardprint=""$$$$endif$$
Awards
$$awarddef.name$$
$$if (awarddef.image !EQUALS "")$$$$endif$$ $$loop row as awardpoints index as awardpointsindex select * from view_awardpoints where roundindex='%%roundindex%%' and awardindex='%%awarddef.awardindex%%' order by score desc limit 10$$ $$tablename="playerdataavatars"$$$$playerdataplayerindex=awardpoints.playerindex$$$$include playerprofilecomponent.html$$ $$endloop awardpoints$$

# Player Score
$$awardpointsindex$$ $$colouredtext2html(awardpoints.playername)$$$$if (playerdataavatars !EQUALS "")$$
$$endif$$
$$awardpoints.score$$