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 … 9 10 11 12 13 … 18 Next »
Non exists entry returns true
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Non exists entry returns true
12-06-2016, 09:02 PM, (This post was last modified: 12-06-2016, 09:03 PM by LocInt.)
#3
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: Non exists entry returns true
This is how I perform the check.

i="Users"
window = {}
window.activeWindows = {}

Code:
if(not window.activeWindows[i]) then table.insert(window.activeWindows, i) window.activeWindows[i]=true end

This is how i removed the entry
Code:
local function removeEntry(t,entry) if(entry~=nil and #t>0) then for i=1, #t do if(t[i] == entry) then print(t[i]) table.remove(t,i) end end end end

After that I performed the first check again and it returned true even when the size was zero.

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Non exists entry returns true - by LocInt - 12-06-2016, 08:56 PM
RE: Non exists entry returns true - by Person8880 - 12-06-2016, 08:59 PM
RE: Non exists entry returns true - by LocInt - 12-06-2016, 09:02 PM
RE: Non exists entry returns true - by Person8880 - 12-06-2016, 09:07 PM
RE: Non exists entry returns true - by LocInt - 12-06-2016, 09:12 PM
RE: Non exists entry returns true - by Person8880 - 12-06-2016, 09:13 PM
RE: Non exists entry returns true - by LocInt - 12-06-2016, 09:14 PM
RE: Non exists entry returns true - by Person8880 - 12-06-2016, 09:22 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.