General > Developers Corner

Running Function when Console Commands are Executed

<< < (2/2)

Bite That Apple:

--- Quote from: Bytewave on February 11, 2015, 06:42:50 PM ---ply:Nick(), not ply:Name().
That's probably the script breaker right there.

--- End quote ---

Not to be rude, you're wrong though. Player:Name(), Player:Nick(), and with exceptions to Player:GetName() are all the same thing. It's just mainstream to use :Nick, instead of :Name, and :GetName is more strictly use for entities; which is sometimes also known as a player.

Bytewave:

--- Quote from: Bite That Apple on February 12, 2015, 12:09:53 AM ---Not to be rude, you're wrong though. Player:Name(), Player:Nick(), and with exceptions to Player:GetName() are all the same thing. It's just mainstream to use :Nick, instead of :Name, and :GetName is more strictly use for entities; which is sometimes also known as a player.

--- End quote ---
Was informed about that prior. Apologies—I'd been so used to Nick(). Note to self: don't help after coming home exhausted from high school.

Bite That Apple:

--- Quote from: Bytewave on February 12, 2015, 05:38:21 AM ---Was informed about that prior. Apologies—I'd been so used to Nick(). Note to self: don't help after coming home exhausted from high school.

--- End quote ---

Ahhh. High School, how I miss those days :( College is not as fun.

Navigation

[0] Message Index

[*] Previous page

Go to full version