Adding Scores
Now, what we want to do next is see how a new score and name are added to the score table. What we want to do is pass a name and a score to the call command. So, we do just that: we add two new variables to the call: winname and winscore. Take a look at the following:
http://www.myscore.com/scores.php?filename=scores/score.sco&scoresize=10&action=INSERT&winname=Joe&winscore=1211&viewtype=FLASH
What we're doing here is submitting Joe to the high score list, with a fantastic score of 1211. If Joe's score is high enough, he will be added to the appropriate position / rank on the list. If Joe's score is not higher than the lowest score on the list, then Joe's name will not be added. On the other hand, if Joe's score was the best score ever, then he would be added as #1, and the lowest score would be booted off the list.
That's it! Operating our score tables is that simple.
| » Level Intermediate |
|
Added: 2001-08-24 Rating: 7.93 Votes: 375 |
| » Author |
| No details available |
| » Download |
| Download the files used in this tutorial. |
| Download (147 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!