• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How do I add a players name to a message?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
Use string concatination.
There is a native which will return a string representing the player name of the passed player. Just concatinate that string into the rest of the message.

native GetPlayerName takes player whichPlayer returns string

GetPlayerName(your_player_here)+" has voted for "+your_vote_string
 
Status
Not open for further replies.
Top