ID:172587
 
Okay. I want this mob to store; the name of each user that goes to it, the number of crew each specific user deposited, and the "crewlevel" (a var of the user). I thought I could do it in a multi-dimensional list. Every time someone goes to the mob it makes a new "record" and puts in those three things. This is how I thought it should be done:

mob
InnKeep
icon = 'Inn.dmi'
icon_state = "IKeep"
var
Crew[][3]//Make the multidimensional list
verb
Store_Crew()
set src in oview(1)
var/N = input("How many crew would you like for me to look after?
You currently have [usr.crew]", "Innkeeper", usr.crew) as num //Choose number
//Of crew that they want to deposit
if(N>=usr.crew)
N=usr.crew
if(!N<=0)
usr<<"Innkeeper : Okay, [N] crew shall stay with me."
var/A = 1
while(src.Crew[A])//Check
//for an empty space
A++
if(A>src.Crew.len)
break
src.Crew.len = A
src.Crew[A][1] = usr
src.Crew[A][2] = N
src.Crew[A][3] = usr.crewlvl
usr.crew -= N


But this doesn't work! Could someone help me? Thank you!

~Ease~
This would be considerably easier if you just created an obj for each player and stored crewmembers in its contents.
In response to Garthor
Thank you Garthor =D

~Ease~