I'm working on a project for my TTT server and I have a question.
Is there a way to use a function to modify values from a table?
Reading the [url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index2584.html]
GMod Wiki article [/url] on them, I thought about doing this:
[code]myTable={}
myTable[1]="randomshitone"
myTable[2]="randomshittoo"
local function whatEver()
myTable[2] == "randomshittwo"
end
[/code]
[QUOTE=Humility;41923614]
Is there a way to use a function to modify values from a table?
I thought about doing this:
[code]myTable={}
myTable[1]="randomshitone"
myTable[2]="randomshittoo"
local function whatEver()
myTable[2] == "randomshittwo"
end
[/code][/QUOTE]
That should work fine.
EDIT: Actually, where you have == it should just be =.
[QUOTE=wh1t3rabbit;41923981]That should work fine.
EDIT: Actually, where you have == it should just be =.[/QUOTE]
Oh, right, lol
messed up there
Sorry, you need to Log In to post a reply to this thread.