KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 22 Feb 2014 02:05 PM |
How can I check how many values are stored in a _G ?
|
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 02:19 PM |
Depends if it's a table:
_G.ValueTable = {"Heyo","lol","Move along sir"} -- 3 Values
print(#_G.ValueTable) |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 22 Feb 2014 02:20 PM |
Oh...
How would I insert Stuff into a _G table?
talbe.insert(_G.Tablename,wahtever)
??!?!?!?!? |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 02:21 PM |
| Tablehere[#Tablehere + 1] = "Valuehere" |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 02:21 PM |
Like you do with a normal table, I assume.
#nerdsunited |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 02:23 PM |
| He means, the thing you need to do when you want to add a player's name for example without editing the code. So, yeah, what I just said is just one method to add values. |
|
|
| Report Abuse |
|
|
|
| 22 Feb 2014 02:31 PM |
Ofcourse you need the full value in it:
_G.ValueTable you know,
And, in order to get the Data you stored in the table: ACCES IT IN ORDER YOU ADDED STUFF TO IT. For example: You added a value (first in the row) named "Derpyderp". then you do this again, with another value called "JohnShed"
_G.ValueTable[2] if you want the second value Etc. |
|
|
| Report Abuse |
|
|