Results 1 to 3 of 3

Thread: Terminating a player connection

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2002
    Posts
    77

    Terminating a player connection

    Currently i am using directplay 8.0. I tried the following code, but it return me an error msg saying Object variable or With block variable not set. I would like to know this error is due to what reason and how i can rectify the problem.

    VB Code:
    1. Private Sub cmdTerminate_Click()
    2. Call DirectPlay8Event.DestroyPlayer(udtPlayers(index).lngPlayerID, 1, False)
    3. End Sub

  2. #2
    Fanatic Member Mushroom Realm's Avatar
    Join Date
    Mar 2002
    Location
    Murrieta, California
    Posts
    650
    its saying that the player doesnt exist, try using (index - 1)

  3. #3
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    DirectPlay8Event is an object type, not an object. You have to create an instance of the object in an appropriate way before you can use it.

    Z.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width