This Month
|
<%j=1
imastari=false%>
<% for i=0 to 199 %>
<% if (month(dd(i)) = month(date)) and (year(dd(i)) = year(date)) then %>
<% if j<= 100 then %>
<% if ss(i)>0 then %>
<%= cstr(j) %>.
<%j=j+1 %>
|
<%= nn(i) %> |
<%= ss(i) %>
|
<% end if %>
<% end if %>
<% else
if i > 99 then
imastari=true
ss(i)=-1
end if
end if %>
<% next %>
|
Overall
|
<% for i=0 to 99 %>
<% if (month(dd(i)) = month(date)) and (year(dd(i)) = year(date)) then %>
<%= cstr(i+1) %>.
|
<%= nn(i) %> |
<%= ss(i) %>
|
<% else %>
<%= cstr(i+1) %>.
|
<%= nn(i) %> |
<%= ss(i) %>
|
<% end if %>
<% next %>
<%
if imastari=true then
On Error Resume Next
fso.CopyFile server.mappath("highscores.txt"), server.mappath("highscores_OLD.txt")
'Set a = fso.CreateTextFile(server.mappath("highscores.txt"),true)
Set a = fso.OpenTextFile(server.mappath("highscores.txt"),2,0)
%>
<%for i=0 to 199
if ss(i)>0 then
a.Write(cstr(i+1)&";;;;;")
a.Write(dd(i)&";;;;;")
a.Write (nn(i)&";;;;;")
a.Write (cstr(ss(i))&";;;;;")
a.Write (gg(i)&";;;;;")
a.Write (ll(i)&";;;;;")
a.WriteLine()
end if
next
a.Close
end if
%>
|