Kimimaru Posted August 7, 2010 Author Share Posted August 7, 2010 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 referenceIt 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 #FEnd 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 More sharing options...
Robin Posted August 7, 2010 Share Posted August 7, 2010 According to the error, you've got an object reference in your player UDT.Also, you should have received this error when you initially ran the project. Make sure you're pressing Ctrl+F5 rather than just F5. Link to comment Share on other sites More sharing options...
Kimimaru Posted August 7, 2010 Author Share Posted August 7, 2010 Oh, okay. I've managed to find the problem; thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now