Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 14 15 16 17 18 Next »
Playername in a secondary table
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Playername in a secondary table
25-04-2015, 08:12 PM,
#4
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Playername in a secondary table
I think you're getting a little confused about validity and existence.

The :isValid() method applies to entities (and VGUI panels), it's to determine if they still exist. This is not the same as their Lua value existing in a Lua table. Even if :isValid() returns false their Lua value still exists (and is truthy), just representing a null value in the engine code.

If you want to check if your name has an entry in the FactionCursors table, it's as easy as:
if FactionCursors[ "The Next Decade" ] then
This statement will only evaluate if the entry under "The Next Decade" is truthy in Lua, which is any value except for false and nil.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Playername in a secondary table - by Destiny's Player - 25-04-2015, 07:17 PM
RE: Playername in a secondary table - by Person8880 - 25-04-2015, 08:02 PM
RE: Playername in a secondary table - by Destiny's Player - 25-04-2015, 08:06 PM
RE: Playername in a secondary table - by Person8880 - 25-04-2015, 08:12 PM
RE: Playername in a secondary table - by Destiny's Player - 25-04-2015, 08:45 PM
RE: Playername in a secondary table - by Person8880 - 25-04-2015, 08:57 PM
RE: Playername in a secondary table - by Destiny's Player - 25-04-2015, 09:08 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.