![]() |
|
Something is broken - 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: Something is broken (/thread-912.html) |
Something is broken - LocInt - 16-05-2015 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. RE: Something is broken - Person8880 - 16-05-2015 That's not a table, that's a string. You can't index strings like that, use String ub(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). |