• Welcome to Valhalla Legends Archive.
 

[VB] 0x65 Help

Started by Makaveli, January 11, 2004, 12:49 PM

Previous topic - Next topic

Makaveli

I'm working on creating a listview that displays a users friend list, and the problem I am having results from this:

DataSet() = Split(Mid$(data, 6), Chr(0))
I'm trying to split the received data into DataSet() which indicates the user, their location, status, and client:

For i = 0 To UBound(DataSet())
According to my packet logs there's another Chr(0) after the username, which is before the Status and Location bytes.  When the user is offline the rest of my code works fine, but if they're online, it regocnizes the status, location, and client all as another user.  Sorry for the half assed explaination, if it's needed later on i'll post a packet log of 0x65.
Any suggestions?

[Kp edit: moved his note of "Using VB" into the title.]

R.a.B.B.i.T

Quote from: Makaveli on January 11, 2004, 12:49 PM
I'm working on creating a listview that displays a users friend list, and the problem I am having results from this:

DataSet() = Split(Mid$(data, 6), Chr(0))
I'm trying to split the received data into DataSet() which indicates the user, their location, status, and client:

For i = 0 To UBound(DataSet())
According to my packet logs there's another Chr(0) after the username, which is before the Status and Location bytes.  When the user is offline the rest of my code works fine, but if they're online, it regocnizes the status, location, and client all as another user.  Sorry for the half assed explaination, if it's needed later on i'll post a packet log of 0x65.
Any suggestions?

[Kp edit: moved his note of "Using VB" into the title.]
0x65 includes the entire friends list, and offline users are marked as their username followed by the Chr(0) splits with no data between them.