Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » get_player_name(poker)
Re: get_player_name(poker) [message #205037 is a reply to message #205017] Fri, 23 June 2006 05:10 Go to previous messageGo to previous message
=HT=T-Bird is currently offline  =HT=T-Bird
Messages: 712
Registered: June 2005
Karma:
Colonel
dead6re wrote on Fri, 23 June 2006 02:40

char PName[255];
PName = Get_Player_Name(poker);
printf("Poked - Player Name: %s\n", PName);


That should get you the name.

Although, player names longer than 255 characters will cause that snippet of code to fail miserably (think std::string).


HTT-Bird (IRC)
HTTBird (WOL)
Proud HazTeam Lieutenant.
BlackIntel Coder & Moderator.

If you have trouble running BIATCH on your FDS, have some questions about a BIATCH message or log entry, or think that BIATCH spit out a false positive, PLEASE contact the BlackIntel coding team and avoid wasting the time of others.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Complete changelog for scripts.dll 2.8
Next Topic: A New Hope - Mod Tools
Goto Forum:
  


Current Time: Sun Jan 19 12:57:04 MST 2025

Total time taken to generate the page: 0.00814 seconds