Mirage Source
Player Name Variable - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Player Name Variable (/showthread.php?tid=2393)



Player Name Variable - Poyzin - 22-11-2008

What is the playername variable? For like msg boxes and stuff so it says like. Msgbox PLAYERNAME has died. etc. (as an example)


Re: Player Name Variable - Rory - 22-11-2008

Player(Index).Name?


Re: Player Name Variable - Poyzin - 22-11-2008

Meh. Not Working..


Re: Player Name Variable - Rory - 22-11-2008

GetPlayerName?


Re: Player Name Variable - Poyzin - 22-11-2008

("& 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.


Re: Player Name Variable - Rory - 22-11-2008

(GetPlayerName & " died.")

I think.
I'm not a coder.


Re: Player Name Variable - Poyzin - 22-11-2008

Waaah. It's not working. Lol


Re: Player Name Variable - Rory - 22-11-2008

Can you post the code snippet you're trying to get to work?


Re: Player Name Variable - Poyzin - 22-11-2008

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.


Re: Player Name Variable - Rian - 22-11-2008

GetPlayerName(Index)
or
GetPlayerName(MyIndex)


Re: Player Name Variable - William - 22-11-2008

Rian Wrote:GetPlayerName(Index)
or
GetPlayerName(MyIndex)
index for server
myindex for client


Re: Player Name Variable - Poyzin - 22-11-2008

Thank you William!!! All fixed.