ID:149372
 
Yeah, im going threw the blue book, and im wondering whats up, from my understanding this is suppose to make the who command in Alphebetical order.
proc/SortTextList(lst[])
var/i
var/j
for(i=1,i<=1st.len,i++)
for(j=i+1,j<=1st.len,j++)
if(sorttext(1st[i],lst[j]) == -1)
var/tmp = lst[i]
lst[i] = lst[j]
lst[j] = tmp
mob/verb/Who()
var/lst[0]
var/mob/M
var/N
for(M)
if(M.client) lst += M.name
SortTextList(lst)
for(N in list) usr << N

But, im getting this error
test.dm:53:error: st: missing comma ',' or right-paren ')'
Thanks,
- RaeKwon
One problem is that in several places you refer to the list as <font face=system>1st</font> (abbreviation for first) which isn't a valid var necause vars can not start with a numeral. It should be <font face=system>lst</font> (list without the i).
In response to Shadowdarke
Okay, got it, thanks Shadow.
- RaeKwon