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:57 PM,
#6
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Playername in a secondary table
This bit:
for i=1,#tab do
is doing nothing. Your table is a key-value mapping of string to table, so there's no number keys and thus #tab == 0.

There's also the fact that you're not wanting to loop at all here, as you're passing in the specific player you're after.
    function MouseMul(ply,plynm,tab,pg,pgtab)
if tab[plynm] then
local MX = tab[plynm][1]
local MY = tab[plynm][2]
Mouse(pg,pgtab[pg],41,48,6,MX,MY,ply)
end
end
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:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.