Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Player Name Variable
#1
What is the playername variable? For like msg boxes and stuff so it says like. Msgbox PLAYERNAME has died. etc. (as an example)
Reply
#2
Player(Index).Name?
Reply
#3
Meh. Not Working..
Reply
#4
GetPlayerName?
Reply
#5
("& GetPlayerName & died.")

Am I doing the format right for the variable?

Or is it like

(& GetPlayerName &" died.")

Or something. because I forget how its done. I know those 2 variables should work.
Reply
#6
(GetPlayerName & " died.")

I think.
I'm not a coder.
Reply
#7
Waaah. It's not working. Lol
Reply
#8
Can you post the code snippet you're trying to get to work?
Reply
#9
Well I'm doing an auto emote thing. After my /help and stuff. I put this.

Code:
Case "/laugh"
     Call AddText("JohnDoe laughs.", EmoteColor)


Now, it works like that, but replacing JohnDoe with a playername variable is what I need done.
Reply
#10
GetPlayerName(Index)
or
GetPlayerName(MyIndex)
Reply
#11
Rian Wrote:GetPlayerName(Index)
or
GetPlayerName(MyIndex)
index for server
myindex for client
Reply
#12
Thank you William!!! All fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)