News

   Join us on the HGN Discord
Click Here.

How to say stuff in chat with Lua?

Tea · 3277

0 Members and 1 Guest are viewing this topic.

Tea

  • The Inactive Guy
  • S.T.A.L.K.E.R.
  • ***
    • Posts: 398
  • TINY LITTLE BABY MAN
Ive tried everything i could think of, ply:runconsolecommand( 'say text' ) but it only accepts it as a command, print("say text") only puts it into console, ive tried ply:printmessage(HUD_PRINTTALK.."say text") still nothing, any help?




Horsey

  • Loner
  • *
    • Posts: 10
Reply #1 on: 24-08-2009
RunConsoleCommand( "say", "hi" );

Running a console command | the function | the arguements
« Last Edit: 24-08-2009 by Horsey »



CortezV

  • Sumarai
  • ***
    • Posts: 165
Reply #2 on: 24-10-2009
function == Hi
Hi == Fuckyou
print ( "Bro hi" )

so run that in console you'll get "Bro Fuckyou"

I think thats right, Hi being the variable, Fuckyou being the value. printing the message in console, Hi should equal out to say Fuckyou.



Thom's Law
"Nothing can not produce something. If there was ever a time when there was nothing, there would STILL be nothing."


Horsey

  • Loner
  • *
    • Posts: 10
Reply #3 on: 24-10-2009
That'll print "Bro hi" because hi is still in the quotes.

function HelloIt()

local Hi = "Fuck you"

print( "Bro" .. Hi )

end
concommand.Add( "PrintIt", HelloIt )



CortezV

  • Sumarai
  • ***
    • Posts: 165
Reply #4 on: 26-10-2009
That'll print "Bro hi" because hi is still in the quotes.

function HelloIt()

local Hi = "Fuck you"

print( "Bro" .. Hi )

end
concommand.Add( "PrintIt", HelloIt )


Wait... Horsey...

Are you the lua coder from TnB and that other community Flaky's in?



Thom's Law
"Nothing can not produce something. If there was ever a time when there was nothing, there would STILL be nothing."


Horsey

  • Loner
  • *
    • Posts: 10
Reply #5 on: 27-10-2009
Yes.. I used to.



CortezV

  • Sumarai
  • ***
    • Posts: 165
Reply #6 on: 27-10-2009
Yes.. I used to.

Whats up broski? have you been doing lately?



Thom's Law
"Nothing can not produce something. If there was ever a time when there was nothing, there would STILL be nothing."


CortezV

  • Sumarai
  • ***
    • Posts: 165
Reply #7 on: 12-11-2009
Lol
« Last Edit: 12-11-2009 by CortezV »



Thom's Law
"Nothing can not produce something. If there was ever a time when there was nothing, there would STILL be nothing."


Tags:
 

* Hello there Guest

Welcome to the HyperGaming Network forums! We are a large gaming and mod community. Please signup to gain access to other sections of the forum.




If you are having problems navigating the forums, please see this topic.

Forum News

   Join us on the HGN Discord
Click Here.

* Users Online

VonXenoCrossBoyWithoutAFairy

Dot Guests: 773 | Dot Users

* Board Stats

  • stats Total Members: 9316
  • stats Total Posts: 180897
  • stats Total Topics: 22667
  • stats Total Categories: 10
  • stats Total Boards: 211
  • stats Most Online: 1479