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

[EO] Runtime Error 9, Explanation inside.


KDawg08
 Share

Recommended Posts

I'm getting a runtime error 9 in my game, I've only added a few custom mods to the server and they're all in
http://www.touchofdeathforums.com/smf/index.php/topic,63215.0.html that thread.

Everytime i try to connect with ANY client (Stock or customized) it gives me the runtime error. When i click DEBUG, it links me directly to this:
For i = 0 To ResourceCache(GetPlayerMap(Index)).Resource_Count

It's in modPlayer in the Server side. I've looked for fixes on this site and I found one edit that fixes them usually… The issue is... I have tried them and they don't work. The fix is already put into this script.

The full code in the SERVER Side where the error COMES FROM is:
        ' Send Resource cache
    For i = 0 To ResourceCache(GetPlayerMap(Index)).Resource_Count
        SendResourceCacheTo Index, i
    Next

Any help would be greatly appreciated, I really don't want to recode everything back into this again... I screwed it up bad enough that I had to do that once with the Clientside and it was all because of 1 little mistake i didn't realize i made.
Link to comment
Share on other sites

  • 1 month later...
@KDawg08:

> I'm getting a runtime error 9 in my game, I've only added a few custom mods to the server and they're all in
> http://www.touchofdeathforums.com/smf/index.php/topic,63215.0.html that thread.
>
> Everytime I try to connect with ANY client (Stock or customized) it gives me the runtime error. When I click DEBUG, it links me directly to this:
> For I = 0 To ResourceCache(GetPlayerMap(Index)).Resource_Count
>
> It's in modPlayer in the Server side. I've looked for fixes on this site and I found one edit that fixes them usually… The issue is... I have tried them and they don't work. The fix is already put into this script.
>
> The full code in the SERVER Side where the error COMES FROM is:
>         ' Send Resource cache
>     For I = 0 To ResourceCache(GetPlayerMap(Index)).Resource_Count
>         SendResourceCacheTo Index, I
>     Next
>
> Any help would be greatly appreciated, I really don't want to recode everything back into this again... I screwed it up bad enough that I had to do that once with the Clientside and it was all because of 1 little mistake I didn't realize I made.

I have a fix, delete all players in the "accounts" folder.
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...