View Single Post
06-30-12, 07:00 AM   #4
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
The table is identical to what you had before, however you're now actually referring to that table and not some other, non existant one. You were also trying to pass the table as an argument to random, rather than its length.

This should work:
Code:
local trash = {
	"test 1",
	"test 2",
	"test 3",
}

SendChatMessage(trash[random(#trash)], "SAY")
(also, no need to explicitly pass nil since it's the last argument)
__________________
Grab your sword and fight the Horde!