Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] Error When Creating a New Account (SOLVED)


Kimimaru
 Share

Recommended Posts

Hey! I've been working on something in Eclipse Origins for a while, and everything's been going well with no errors. However, when I loaded the server today and tried making a new account, I got this error when I clicked the Accept button:

> Compile error:
>
> Can't Get or Put an object reference variable or a variable of user-defined type containing an object reference

It goes to this Sub in modDatabase:

```
Sub SavePlayer(ByVal Index As Long)
    Dim filename As String
    Dim F As Long

    filename = App.Path & "\data\accounts\" & Trim$(Player(Index).Login) & ".bin"

    F = FreeFile

    Open filename For Binary As #F
    Put #F, , Player(Index)
    Close #F
End Sub
```
It highlights **Player** in:

```
Put #F, , Player(Index)
```
I haven't touched this piece of code, and I've also deleted all the accounts and characters to ensure that nothing with the Rec is interfering with this. This error came out of nowhere, and I don't know what's wrong. Any help would be greatly appreciated.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...