ID:140971
 
Code:
/mob
robot
icon_state = "robot"
var/list/cmds[]
var/ccount = 1
var/active = 0
verb
Code(C as message)
set src in oview(1)
var/start = 1
var/count = 1
while(cmds[count] != "\nend")
cmds[count] = copytext(C,start,findtext(C, "\n", start))
start = findtext(C, "\n", start)
count++

Print()
set src in oview(1)
for(var/a in cmds)
world << a


Problem description:
Runtime error index out of bounds.
Yup, you're trying to reference an empty cmds list