• Changing value in table
    2 replies, posted
[lua] if not v:Alive() then --colors[2][2] = Color( 255, 0, 0, 255 ) end [/lua] Am I doing this right? The table is [lua] colors = { someothertable = { }, text = { somevariable = dlfaksjdf text = Color( 0,0,0,255 ) -- just for an example ^^^^ } } [/lua] Remember this isn't the actual stuff, just an example.
colors.text.text = Color(255,0,0,255) I think.
Thanks, testing now. :) [editline]15th June 2011[/editline] Works, just gotta fix it so it's not making everyone red.. :) Thanks again [editline]15th June 2011[/editline] K got it. :D
Sorry, you need to Log In to post a reply to this thread.