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 … 13 14 15 16 17 18 Next »
Something is broken
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Something is broken
16-05-2015, 12:14 AM, (This post was last modified: 16-05-2015, 12:23 AM by LocInt.)
#1
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
Something is broken
Hey,

CLIENT SIDE:

I have table of zeros: 000000000

I can print all of em by

Code:
print(table)

For some reason when I'm trying to receive one of them

Code:
table[1]

It's nil?

This is not issue when I draw things because for some reason screen is rendering just fine? I just can't get any arithmetic out of the table.

UPDATE: Same thing can be repeated using number 1.

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
16-05-2015, 12:30 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Something is broken
That's not a table, that's a string. You can't index strings like that, use StringConfusedub(1,1) etc.

Before you say it, yes it worked before, but that was only due to the string type using the GMod Lua indexing rules rather than pure Lua's. It was never documented so should never have been assumed usable (and the dev log mentioned the change a few days ago).
Find
Reply
« Next Oldest | Next Newest »


  • 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.