19-02-2007, 04:19 PM
Actually for the Put/Get stuff it's better to do it like this...
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.
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.