You should be using pairs instead of table.foreach - the latter was deprecated in Lua 5.1
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".
Author of NPCScan and many other AddOns.
|