Jump to content




Help (could not think of good title)


  • You cannot reply to this topic
3 replies to this topic

#1 houseofkraft

  • Members
  • 170 posts
  • LocationUSA

Posted 22 January 2017 - 12:44 AM

Hello!

The title sucks, I know :P

Anyways, I want to do something like this

local cmd = "help"
if command.cmd.output then
  for k,v in pairs(command.cmd.output) do
     print(v)
  end
end

I'm making a console for my website hosting system in Firewolf and I need to have something like this.

Thanks!

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 22 January 2017 - 03:00 AM

Try using the value of the 'cmd' variable instead of the string "cmd" when indexing the command table.

#3 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 22 January 2017 - 03:27 PM

yami's post as code

command[cmd].output

Edited by Lupus590, 22 January 2017 - 03:28 PM.


#4 houseofkraft

  • Members
  • 170 posts
  • LocationUSA

Posted 23 January 2017 - 11:45 AM

Thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users