View Single Post
07-16-16, 08:28 PM   #4
Lombra
A Molten Giant
 
Lombra's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 554
Originally Posted by Dejablue View Post
I thought I needed the arguments for

Code:
if event == "PLAYER_LOGIN" then
Yeah, just don't mistake them for being related to variables with the same name defined outside of that function.

Originally Posted by Dejablue View Post
I had problems with this because ipairs stops when it hits nil so if I wipe or remove anything it doesn't complete, or at least Blizzard's internal method doesn't.
You can use table.remove/tremove to remove an element and "collapse" the table afterwards so the indices remain nice and sequential.

I don't quite understand what the problem with the database is. It's not being used on load? Are you updating the UI after your stuff has been loaded?
__________________
Grab your sword and fight the Horde!
  Reply With Quote