DTextEntry help !

hello, i want to run the console command startmovie then the text from Dtextentry then avi at the end.
How do i put the avi at the end ?

Code:[lua] RunConsoleCommand( “startmovie”, Cinematest:GetValue()… “avi” )
Cinematest:Clear()
end [/lua]

Hole Code:
[lua]local Button = vgui.Create( “Button” ) //Create a button that is attached to Frame
Button:SetText( “Start Movie” ) //Set the button’s text to “Click me!”
Button:SetParent( CinemaRecorder )
Button:SetPos( 5, 250 ) //Set the button’s position relative to it’s parent(Frame)
Button:SetWide( 100 ) //Sets the width of the button you’re making
function Button:DoClick( ) //This is called when the button is clicked
RunConsoleCommand( “startmovie”, Cinematest:GetValue()… “avi” )
Cinematest:Clear()
end

local Cinematest = vgui.Create( “DTextEntry”)
Cinematest:SetPos( 130, 250 )
Cinematest:SetTall( 20 )
Cinematest:SetWide( 150 )
Cinematest:SetEnterAllowed( true )
Cinematest:SetParent( CinemaRecorder ) [/lua]

Help :S

You need to define Cinematest before Button.

[lua]local Cinematest = vgui.Create( “DTextEntry”, CinemaRecorder)
Cinematest:SetPos( 130, 250 )
Cinematest:SetTall( 20 )
Cinematest:SetWide( 150 )
Cinematest:SetEnterAllowed( true )

local Button = vgui.Create( “DButton”, CinemaRecorder )
Button:SetText( “Start Movie” )
Button:SetPos( 5, 250 )
Button:SetWide( 100 )
function Button:DoClick( )
RunConsoleCommand( “startmovie”, Cinematest:GetValue(), “avi” )
Cinematest:Clear()
end[/lua]

Also, you put the “avi” as a seperate argument to RunConsoleCommand.

Thank you so much again ! : D