|
-
May 30th, 2000, 01:48 AM
#1
Thread Starter
New Member
-
May 30th, 2000, 02:38 AM
#2
PowerPoster
The easiest way will be to sort the array always when you add a new highscore. You go trough the entries and if one is bigger than the newest highscore you move all entries after the actual one up and put the actual in. Sounds difficult but its really easy, can you tell me how you store the username and points in your program... I mean like this:
Code:
Dim Player() as String
Dim Score() as Long
-or-
Type tPlayer
Name as String
Score as Long
End Type
Dim Player() as tPlayer
...or whatever
-
May 30th, 2000, 02:45 AM
#3
Thread Starter
New Member
I do it like this basically..
Code:
Private Type HighScorer
strName as String
dblScore as Double
End Type
Dim Person(1 to 10) as HighScorer
and I understand what you're saying and I'm slapping myself in the face right now, must be sleepin Thanks Fox...
-
May 30th, 2000, 03:48 AM
#4
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|