Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
binary accounts the easy way....
#4
Actually for the Put/Get stuff it's better to do it like this...

Code:
Open FileName For Binary As #f
        Put #f, , Player(index).Login
        Put #f, , Player(index).Password

        for i = 1 to max_chars
            put #f, , Player(index).char(i)
        next i
    Close #f

There are a ton of temporary variables stored in the accountrec... and if you just use Put #f, , Player(index) it will also save every one of the temporary variables (not that it's a huge problem, it's only an extra 15 or 20 bytes i think... but it's better practice to do it the way mentioned above.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)