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 #205055 is a reply to message #205037] Fri, 23 June 2006 09:03 Go to previous messageGo to previous message
Cat998
Messages: 1082
Registered: January 2004
Location: Austria, Vienna
Karma:
General (1 Star)
Moderator/Captain

=HT=T-Bird wrote on Fri, 23 June 2006 14:10

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).


scripts.dll does not allow nick names longer than 35 chars.
Use printf("Poked - Player Name: %s\n", Get_Player_Name(poker));


When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
 
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:45:58 MST 2025

Total time taken to generate the page: 0.00813 seconds