Team Spartan Cookies & Milk Forums
Player:nick() & Player:name() - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Player:nick() & Player:name() (/thread-3488.html)



Player:nick() & Player:name() - The17thDoctor - 27-10-2020

Both are the same exact functions so why having 2 of em.


RE: Player:nick() & Player:name() - Skeleton - 27-10-2020

(27-10-2020, 08:10 PM)The17thDoctor Wrote: Both are the same exact functions so why having 2 of em.

I don't see what's the problem here. There's just aliases calling the same function, but they exist because of GLua heritage.


RE: Player:nick() & Player:name() - Person8880 - 28-10-2020

Ideally there would be one method for it, but GLua has 3 of them (thanks Garry). I ended up binding 2 of the 3 to allow people who have worked in GLua and picked one of them to be able to use their preferred version.