|
-
Mar 22nd, 2002, 07:45 PM
#1
Thread Starter
Member
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
-
Mar 22nd, 2002, 11:10 PM
#2
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.
-
Mar 23rd, 2002, 03:08 PM
#3
Thread Starter
Member
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
-
Mar 23rd, 2002, 03:23 PM
#4
Thread Starter
Member
*************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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|