ID:2852598
 
(See the best response by Lummox JR.)
Code:
PlayerData/var/autoLoad = 0

mob/BaseCamp/ChoosingCharacter
sight = SEE_THRU
Login()

var/PlayerData/p = worldData.playersData[ckey]
if(p && p.autoLoad)

var/list/available_char_names=client.base_CharacterNames()

if(available_char_names.len >= 1)
client.tmpInterface = new (client)
client.glide_size = GLIDE_SIZE
client.base_LoadMob(available_char_names[1])
del(src)
return


Problem description:
Getting an index error during runtime on

var/PlayerData/p = worldData.playersData[ckey]

Kind of new at this so if anyone could just point me to the right spot in byond to learn more about this, I'm fine with that. Thank you!
Best response
worldData.playersData is not a list, which is why you get an error trying to access an index. It's possible it wasn't initialized yet.
So do I need to make it a list?
Is there an article I can read on worlddata.playerdata or on getting it to initialize? I don't mind doing the work I just have a really hard time finding the information.
Making it a list did seem to work for me, thank you lummox!