Originally Posted by Dejablue
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
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?