$$openfile awardlist.html$$ $$include menu.html$$ $$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 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 sum(score) as awardscore,playername,playerindex from view_awardpoints where awardindex='%%awarddef.awardindex%%' group by playerindex order by awardscore desc limit %%MAXAWARDPLAYERS%%$$ $$if (awardpointsindex EQUALS "1")$$ $$MessageCentre("AWARD%%awarddef.name%%",awardpoints.playername,awardpoints.awardscore)$$ $$endif$$ $$tablename="playerdataavatars"$$$$playerdataplayerindex=awardpoints.playerindex$$$$include playerprofilecomponent.html$$ $$endloop awardpoints$$
# Player Score
$$awardpointsindex$$ $$colouredtext2html(awardpoints.playername)$$$$if (playerdataavatars !EQUALS "")$$
$$endif$$
$$awardpoints.awardscore$$
$$closefile$$