View Single Post
08-05-17, 11:16 AM   #6
Eragon_Edward
A Murloc Raider
Join Date: Aug 2017
Posts: 5
Oh thx!,
now I would like to make an index, like Blizzard did with "/help" command but I having issues how to make

print_array() into variable. the code is kind of

tmp = {"alpha", "beta", "gamma"}
function print_array(tbl)
for i = 1, #tbl do
print(i, tbl[i])
end end
print_array(tmp)

and that displays
1, alpha
2, beta
3, gamma


I would like to show my /commands
After I write
/hcm -- Help command
could display the next kind of table.
1, /ph , "you say , hello guild mates!"
2, /sph " an other phrase "


but until now I have no clue how to make it just the so simple ones, with foo= 14, print (foo) :S
  Reply With Quote