SWEP Say

I’m trying to modify an swep make the user play a sound and say a concurring string which matches the dialogue of the sound. The sound part works, but I can’t seem to make the say command work.


self.Talk = {
        Sound( "npc/metropolice/vo/moveit.wav" ),
        Sound( "npc/metropolice/vo/movealong.wav" ),
	Sound( "npc/metropolice/vo/getoutofhere.wav" ) };
self.Say = {
        "Move It!",
        "Move Along!",
	"Get Out of Here." };


function SWEP:SecondaryAttack()
	local number = math.random(1,#self.Talk) ;
        self.Owner:EmitSound( self.Talk[number] );
		self.Owner:RunConsoleCommand(say, tostring(self.Say[number])) ;
 
  end 

Here’s the error i get:


attempt to call method 'RunConsoleCommand' (a nil value)

[lua]
function SWEP:SecondaryAttack()
local number = math.random(1,#self.Talk) ;
self.Owner:EmitSound( self.Talk[number] );
self.Owner:RunConsoleCommand(“say”, tostring(self.Say[number])) ;

end
[/lua]
Try that, you forgot the quotes for the say.

If that doesnt work, try…
[lua]
function SWEP:SecondaryAttack()
local number = math.random(1,#self.Talk) ;
self.Owner:EmitSound( self.Talk[number] );
self.Owner:ConCommand(“say”… tostring(self.Say[number])) ;

end
[/lua]