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

Runtime Error 91


Xlithan
 Share

Recommended Posts

So getting an error here.

I've been developing a project for many years now. It is a heavily modified version of Mirage Source, and I've recently attempted to update the networking system to use packet buffers.

However, after doing the conversion, I'm getting this error when I try to connect: **Runtime Error 91: Object variable or With block variable not set.**

It highlights the following line of code within **_Sub IncomingData:_**

_TempPlayer(index).buffer.WriteBytes buffer()_

Any help would be appreciated. Thanks.
Link to comment
Share on other sites

I've copied everything over from Skywyre so not sure what I'm missing here

* * *

I'm just wondering. In my source, I have a lot of **"player(index)."**, where as in SkyWyre it uses **"TempPlayer(index)."**

Should I replace these and use TempPlayer? Do you think that's what the issue is, because TempPlayer doesn't hold any value as it's never set?
Link to comment
Share on other sites

Well, what I have is Player(Index) which uses the AccountRec (TempPlayer on Skywyre), and Player(Index).Char(x) which uses the CharacterRec (or whatever it is) I've checked over both sources to ensure that it's right and it seems to be correct, just not sure why it's producing this error.
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...