[B]Hey guys, how can I concat a table without the first argument?[/B]
[CODE]if args[1] == "announce" then
ply:SendLua('chat.AddText(Color(255, 0, 234),"'..table.concat(args, " ")..'")')[/CODE]
[IMG]http://i.imgur.com/XEJH3Rp.png[/IMG]
lolol cheesy photo done in 20 secs in photoshop
From the wiki:
table.concat( Table table, [ String separator, Number start location, Number end location] )
Aka
[code]
table.concat({"derp","Gmod"}," ",2)
[/code]
It even tells you on the maurits wiki.
[code]
print(table.concat(test_table," ")) // Prints "This is a table concat test!"
print(table.concat(test_table," ",2,5)) // Prints "is a table concat"[/code]
[QUOTE=Nak;44365265]From the wiki:
table.concat( Table table, [ String separator, Number start location, Number end location] )
Aka
[code]
table.concat({"derp","Gmod"}," ",2)
[/code]
It even tells you on the maurits wiki.
[code]
print(table.concat(test_table," ")) // Prints "This is a table concat test!"
print(table.concat(test_table," ",2,5)) // Prints "is a table concat"[/code][/QUOTE]
Oh, k
Sorry, you need to Log In to post a reply to this thread.