LGDR Posted July 18, 2012 Author Share Posted July 18, 2012 Hello,I have a bug with the tutorial : (Map Report)http://www.touchofdeathforums.com/smf2/index.php/topic,62302.0.htmlwith eclipse 3.0 .**Client:****Error '9': Subscript out of Range**```HandleDataSub(SMapReport) = GetAddress(AddressOf HandleMapReport)```How to fix please ? thanks you Link to comment Share on other sites More sharing options...
Ruins of Hell Posted July 18, 2012 Share Posted July 18, 2012 Did you do this step of the tutorial?> **At the end of modHandleData, add this:**> ```> Private Sub HandleMapReport(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)> Dim Buffer As clsBuffer> Dim MapNum As Integer> > Set Buffer = New clsBuffer> Buffer.WriteBytes Data()> > frmMapReport.lstMaps.Clear> > For MapNum = 1 To MAX_MAPS> frmMapReport.lstMaps.AddItem MapNum & ": " & Buffer.ReadString> Next MapNum> > frmMapReport.Show> > Set Buffer = Nothing> End Sub> > ``` Link to comment Share on other sites More sharing options...
LGDR Posted July 19, 2012 Author Share Posted July 19, 2012 @Soul:> Did you do this step of the tutorial?Yes. Link to comment Share on other sites More sharing options...
Synergy Posted July 19, 2012 Share Posted July 19, 2012 I'd suggest going through and redoing the whole tutorial, you probably missed something. Link to comment Share on other sites More sharing options...
LGDR Posted July 19, 2012 Author Share Posted July 19, 2012 @Synergy:> I'd suggest going through and redoing the whole tutorial, you probably missed something.I redid the tutorial and its not working. :confused:**Client:****Error '9': Subscript out of Range**```HandleDataSub(SMapReport) = GetAddress(AddressOf HandleMapReport)``` Link to comment Share on other sites More sharing options...
LGDR Posted July 21, 2012 Author Share Posted July 21, 2012 I rereredid the tutorial and its not working…please help me. Link to comment Share on other sites More sharing options...
Ali3n5 Posted July 26, 2012 Share Posted July 26, 2012 Make sure that your client and server packets actually match up (i.e. that they're all there and in the same order in the client and in the server). They're the things before the SMSG_COUNT and CMSG_COUNT 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