home *** CD-ROM | disk | FTP | other *** search
- view_scores = "";
- my_ranking = "";
- num = 1;
- while(Number(numplayers) >= Number(num))
- {
- spacer1 = " ".substr(0,3 - length(num));
- spacer2 = " ".substr(0,8 - length(eval("name_" add num)));
- spacer3 = " ".substr(0,7 - length(eval("score_" add num)));
- view_scores = view_scores add num add spacer1 add eval("name_" add num) add spacer2 add spacer3 add eval("score_" add num);
- if(Number(num) != Number(numplayers))
- {
- view_scores = view_scores add "\n";
- }
- num = Number(num) + 1;
- }
- num = 1;
- while(Number(num) < Number(numplayers))
- {
- if(my_score == eval("score_" add num) and my_name == eval("name_" add num))
- {
- my_ranking = "You ranked #" add num add " out of the top " add numplayers add " players!!!";
- }
- num = Number(num) + 1;
- }
- if(my_ranking eq "")
- {
- my_ranking = "You did not rank within the top " add numplayers add " scores.";
- }
- stop();
-