Hello,
Can't seem to find answer to this:
I got a table wich looks like this
I wanna print all mobnames but something like:
It wont replace the v value for the number.
What would be a correct way to do this?
Thanks for any help.
Orogan
edit: hehe as I post here I found the solution.
Problem was the table start from 1 not from zero, so should be
for v = 1, mobnumber, 1 do
Can't seem to find answer to this:
I got a table wich looks like this
"Mobs":
1:
"room"="room&"
"name"="mob1"
2:
"room"="room2"
"name"="mob2"
...
I wanna print all mobnames but something like:
mobnumber = table.maxn (Mobs)
for v = 0, mobnumber, 1 do
Note (Mobs[v].name)
end
It wont replace the v value for the number.
What would be a correct way to do this?
Thanks for any help.
Orogan
edit: hehe as I post here I found the solution.
Problem was the table start from 1 not from zero, so should be
for v = 1, mobnumber, 1 do