Results 1 to 4 of 4

Thread: how do i get players name? (DP)

  1. #1

    Thread Starter
    Member Onyx_Black's Avatar
    Join Date
    Nov 2001
    Location
    In my computer
    Posts
    42

    how do i get players name? (DP)

    Is there a way to get a players name from there ID number in direct player.

    I want to get the name from the ID number that is sent when a message is sent.

    ''dp.Receive(lngFromPlayerID, lngToPlayerID, DPRECEIVE_ALL)''

    I know i could use a list to do this, but i want to know if there is a simple function.....


    --getShortname from playerID--
    Cool site for VB gaming dev :-

    http://rookscape.com/vbgaming/tutorials.php

  2. #2
    Zaei
    Guest
    I would store the current user's name with all of their other info, but I dont know if DPlay does this for you. If so, I dont know how to get to that data.

    Z.

  3. #3

    Thread Starter
    Member Onyx_Black's Avatar
    Join Date
    Nov 2001
    Location
    In my computer
    Posts
    42
    I can’t really put all the information into an array, cus if I had 200 players then looping through all of them would cause some major lag.


    For Counter=0 to Curent players
    If PlayerID=ID(counter) then
    Name=player(counter).name
    End if
    Next counter

    Argh. Lag magnet
    Cool site for VB gaming dev :-

    http://rookscape.com/vbgaming/tutorials.php

  4. #4

    Thread Starter
    Member Onyx_Black's Avatar
    Join Date
    Nov 2001
    Location
    In my computer
    Posts
    42
    *************Found it*****************

    dp.GetPlayerFriendlyName(lngFromPlayerID)

    ***********************************
    Cool site for VB gaming dev :-

    http://rookscape.com/vbgaming/tutorials.php

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