|
-
Jul 27th, 2006, 11:44 AM
#1
Thread Starter
Addicted Member
history, dim msg as string
Hi, can sombody help me out here, i want the server to store the last 10 events thats taken place in a game
when i check the history on the client, the retrive sub is called.
i need to open a file and store it all as msg
which will then send back to the server, and the displayhistory sub
should be fine.
another problem is im gonna need another sub to write history to a file, and to make sure thiers no more than 10 events/lines stored.
---------client
VB Code:
Public Sub displayHistory(Msg As String)
With frmMain.txthistory
.Text = .Text & Msg
End With
End Sub
--------server side, unfinished
VB Code:
Public Sub retrievehistory(Index As Integer)
On Error Resume Next
Dim Msg As String
frmMain.wsk(Index).SendData Chr$(2) & Msg & vbCrLf & Chr$(0)
DoEvents
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|