01-12-2008, 02:57 AM
Alright i work good with examples. So tell me if this is the main concept.
First in like the game client you have stuff like this
So in the server part it will look for SAVEITEM then itll go to the next line and look for ItemNUm and then the next line to find Name and etc until it comes to end_char?
First in like the game client you have stuff like this
Code:
Dim Packet As String
With Item(ItemNum)
Packet = "SAVEITEM" & SEP_CHAR & ItemNum & SEP_CHAR & Trim(.Name) & SEP_CHAR & .Pic & SEP_CHAR & .Type & SEP_CHAR & .Data1 & SEP_CHAR & .Data2 & SEP_CHAR & .Data3 & SEP_CHAR & END_CHAR
End With
Call SendData(Packet)
End Sub