Hello again, when login into the game i get this error:

  ' Send Resource cache
    For I = 0 To ResourceCache(GetPlayerMap(index)).Resource_Count
        SendResourceCacheTo index, I
    Next